void (@NotNull AnActionEvent e) { Project project = e.getProject(); final boolean applicable = getExcludedConfigurationAndFile(e, project) != null; e.getPresentation().setEnabledAndVisible(applicable); }