void (@NotNull Environment env) { env.logMessage(toString()); Editor editor = FileEditorManager.getInstance(getProject()).getSelectedTextEditor(); assert editor.getDocument() == getDocument(); performCheck(editor); }