void (@NotNull AnActionEvent e) { if (!FileDocumentManager.getInstance().requestWriting(myEditor.getDocument(), myProject)) { return; } Language language = Language.ANY; if (myElements != null && myElements.length != 0) { language = myElements[0].getLanguage(); } doSurround(myProject, myEditor, mySurrounder, myElements); SurroundWithLogger.logSurrounder(mySurrounder, language, myProject); }