}
public static Language getLanguage(PsiElement element) {
Language language = element.getLanguage();
if (language instanceof LanguageDialect) {
LanguageDialect languageDialect = (LanguageDialect) language;
language = languageDialect.getBaseLanguage();
}
return language;
}