void (@NotNull AnActionEvent e) { Project project = e.getProject(); e.getPresentation().setEnabledAndVisible( project != null && DebuggerManagerEx.getInstanceEx(project).getContext().getDebuggerSession() != null && getCompilableFiles(project, e.getData(CommonDataKeys.VIRTUAL_FILE_ARRAY)).length > 0 && !CompilerManager.getInstance(project).isCompilationActive()); }