void (@NotNull AnActionEvent e) { Project project = getEventProject(e); int attachDebuggerProvidersNumber = myAttachProvidersSupplier.get().size(); boolean enabled = project != null && attachDebuggerProvidersNumber > 0; e.getPresentation().setEnabledAndVisible(enabled); }