void (@NotNull InspectionProfileModifiableModel profile, boolean copyToProject) { getSchemesPanel().editNewSchemeName( profile.getName(), copyToProject, newName -> { final InspectionProfileModifiableModel newProfile = copyToNewProfile(profile, myProject, newName, true); addProfile(newProfile); selectScheme(newProfile); }); }