void (@NotNull AnActionEvent e) { List<GroupingNode> targets = getTargets(e, GroupingNode.class); boolean enabled = e.getProject() != null && !targets.isEmpty() && ContainerUtil.all(targets, node -> node.getGroup() instanceof FolderDashboardGroupingRule.FolderDashboardGroup); e.getPresentation().setEnabledAndVisible(enabled); }