List<AnAction> (@NotNull List<? extends AnAction> visibleChildren, @NotNull UpdateSession updateSession) { boolean isRootGroup = getClass() == MyGroup.class; return ContainerUtil.filter(visibleChildren, o -> o instanceof Separator && (isRootGroup || ((Separator)o).getText() != null) || isRefactoringAction(o, (ActionManagerImpl)actionManager) && updateSession.presentation(o).isEnabledAndVisible()); }