CodeStyleScheme (final String name, boolean isProjectScheme) { for (CodeStyleScheme scheme : mySchemes) { if (isProjectScheme == isProjectScheme(scheme) && name.equals(scheme.getName())) return scheme; } return null; }