List<CodeStyleScheme> () { List<CodeStyleScheme> schemes = new ArrayList<>(getSchemes()); schemes.sort((s1, s2) -> { if (isProjectScheme(s1)) return -1; if (isProjectScheme(s2)) return 1; if (s1.isDefault()) return -1; if (s2.isDefault()) return 1; return s1.getName().compareToIgnoreCase(s2.getName()); }); return schemes; }