boolean (@NotNull AnActionEvent e) { Project project = e.getProject(); if (project == null) return true; return ((ServiceViewManagerImpl)ServiceViewManager.getInstance(project)).isShowServicesTree(); }