Set<Language> () { FileViewProvider original = myOriginalProvider; Set<Language> languages = original.getLanguages(); Language base = original.getBaseLanguage(); return ContainerUtil.map2Set(languages, (language) -> language == base ? myLanguage : language); }