void (@NotNull AnActionEvent event) { String profileName = askForProfileName(CopyrightBundle.message("copy.copyright.profile"), ""); if (profileName == null) { return; } CopyrightProfile clone = new CopyrightProfile(); clone.copyFrom((CopyrightProfile)Objects.requireNonNull(getSelectedObject())); clone.setName(profileName); addProfileNode(clone); }