void (@NotNull final AnActionEvent e) { final Project project = e.getData(CommonDataKeys.PROJECT); if (project == null) { e.getPresentation().setEnabled(false); } else { e.getPresentation().setEnabled(!CompilerManager.getInstance(project).isCompilationActive()); } }