Object (@NotNull DataProvider dataProvider) { final Editor editor = (Editor)dataProvider.getData(CommonDataKeys.EDITOR.getName()); if (editor == null || editor.isDisposed()) { return null; } final Boolean aBoolean = editor.getUserData(EditorTextField.SUPPLEMENTARY_KEY); if (aBoolean != null && aBoolean.booleanValue()) { return null; } return TextEditorProvider.getInstance().getTextEditor(editor); }