@Nullable
  private static LanguageCodeStyleSettingsProvider getProviderForContext(Editor editor, PsiFile file) {
    Language language = PsiUtilBase.getLanguageInEditor(editor.getCaretModel().getCurrentCaret(), file.getProject());
    return language != null ? guessSettingsProviderForLanguage(language) : null;
  }
@Nullable
  private static LanguageCodeStyleSettingsProvider getProviderForContext(Editor editor, PsiFile file)