void (@NotNull AnActionEvent e) { T currentScheme = getCurrentScheme(); if (currentScheme != null) { mySchemesPanel.editNewSchemeName( currentScheme.getDisplayName(), mySchemesPanel.supportsProjectSchemes() && getModel().isProjectScheme(currentScheme), newName -> duplicateScheme(currentScheme, newName)); } }