void (@NotNull AnActionEvent e) { e.getPresentation().setEnabled( e.getData(CommonDataKeys.EDITOR) == null || SwingUtilities.isDescendingFrom(e.getData(PlatformCoreDataKeys.CONTEXT_COMPONENT), header.fileMaskField)); }