boolean (@NotNull Language language) { Set<String> langs = LANGS.getValue(); while (language != null) { if (langs.contains(language.getID())) return true; language = language.getBaseLanguage(); } return false; }