void (@NotNull EditorColorsScheme scheme) { String schemeName = scheme.getName(); if (mySelectedScheme.getName().equals(schemeName)) { selectDefaultScheme(); } boolean deletedNewlyCreated = false; MyColorScheme toDelete = mySchemes.get(schemeName); if (toDelete != null) { deletedNewlyCreated = toDelete.isNew(); } mySchemes.remove(schemeName); resetSchemesCombo(null); mySomeSchemesDeleted = mySomeSchemesDeleted || !deletedNewlyCreated; }