void (@NotNull AnActionEvent event) { String profileName = askForProfileName(getCopyDialogTitle()); if (profileName == null) return; @SuppressWarnings("unchecked") final T clone = myCloner.copyOf((T)getSelectedObject()); myNamer.setName(clone, profileName); addNewNode(clone); selectNodeInTree(clone); onItemCloned(clone); }