@Override
      public void actionPerformed(@NotNull AnActionEvent event) {
        String profileName = askForProfileName(CopyrightBundle.message("copy.copyright.profile"), "");
        if (profileName == null) {
          return;
        }

        CopyrightProfile clone = new CopyrightProfile();
        @Nullable CopyrightProfile profile = null;
        boolean sharedProfile = true;
        final TreePath selectionPath = myTree.getSelectionPath();
        if (selectionPath != null && selectionPath.getLastPathComponent() instanceof MyNode node) {
          final NamedConfigurable<?> configurable = node.getConfigurable();
          LOG.assertTrue(configurable != null, "already disposed");
          profile = (CopyrightProfile)configurable.getEditableObject();
          sharedProfile = ((CopyrightConfigurable)configurable).isShareProfile();
        }
        CopyrightProfile copyrightProfile = Objects.requireNonNull(profile);
        clone.copyFrom(copyrightProfile);
        clone.setName(profileName);
        addProfileNode(clone, sharedProfile);
      }
@Override
      public void actionPerformed(@NotNull AnActionEvent event)