String (PsiFile psiFile) { final Language language = psiFile.getLanguage(); LanguageCodeStyleSettingsProvider provider = LanguageCodeStyleSettingsProvider.findUsingBaseLanguage(language); if (provider != null && provider.getIndentOptionsEditor() != null) { String name = provider.getConfigurableDisplayName(); if (name != null) { return name; } } return language.getDisplayName(); }