CodeStyleScheme (final String preferredName, final CodeStyleScheme parentScheme) { final boolean isProjectScheme = isProjectScheme(parentScheme); return new CodeStyleSchemeImpl(SchemeNameGenerator.getUniqueName(preferredName, parentScheme, name -> containsScheme(name, isProjectScheme)), false, parentScheme); }