boolean (@NotNull Language language) { if (language == Language.ANY) { return false; } if (language.getID().startsWith("$")) { return false; } if (language instanceof InjectableLanguage) { return true; } if (language instanceof TemplateLanguage || language instanceof DependentLanguage) { return false; } return LanguageParserDefinitions.INSTANCE.forLanguage(language) != null; }