Collection<Charset> () { Collection<Charset> result = new HashSet<>(); Project[] projects = ProjectManager.getInstance().getOpenProjects(); for (Project project : projects) { result.addAll(EncodingProjectManager.getInstance(project).getFavorites()); } result.addAll(EncodingProjectManagerImpl.widelyKnownCharsets()); return result; }