private static boolean isRefactoringAction(@NotNull AnAction child, @NotNull ActionManagerImpl actionManager) {
    AnAction action = child instanceof OverridingAction ? actionManager.getBaseAction((OverridingAction)child) : child;
    return action instanceof BaseRefactoringAction ||
           action instanceof RenameElementAction ||
           action instanceof CopyElementAction;
  }
private static boolean isRefactoringAction(@NotNull AnAction child, @NotNull ActionManagerImpl actionManager)