void (@NotNull final AnActionEvent e) { final List<T> elements = myEntriesChooser.getSelectedElements(); e.getPresentation().setEnabled(elements.size() == 1 && getContent(elements.get(0)).size() > 1); }