void (@NotNull AnActionEvent e) { Presentation p = e.getPresentation(); T currentScheme = getCurrentScheme(); p.setEnabledAndVisible(currentScheme != null && getModel().isProjectScheme(currentScheme)); }