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