boolean (final Language language) { if (language == Language.ANY) return false; if (language instanceof TemplateLanguage || language instanceof DependentLanguage || language instanceof InjectableLanguage) { return false; } if (language.getBaseLanguage() != null) return value(language.getBaseLanguage()); return true; }