void (@NotNull AnActionEvent e) { final Presentation presentation = e.getPresentation(); presentation.setEnabled(false); final OrderEntry entry = getSelectedEntry(); if (entry != null && entry.isValid()){ if (!(entry instanceof ModuleSourceOrderEntry)){ presentation.setEnabled(true); } } }