void (@NotNull GuiEditor editor, final ArrayList<? extends RadComponent> selection, final AnActionEvent e) { final boolean applicable = canAdjustIndent(selection); e.getPresentation().setVisible(applicable); final Component focusOwner = IdeFocusManager.findInstanceByComponent(editor).getFocusOwner(); e.getPresentation().setEnabled(applicable && (focusOwner == editor || editor.isAncestorOf(focusOwner))); }