public static CommonCodeStyleSettings getLocalLanguageSettings(Editor editor, int offset) {
    PsiFile psiFile = PsiEditorUtil.getPsiFile(editor);
    Language language = PsiUtilCore.getLanguageAtOffset(psiFile, offset);
    return getLanguageSettings(psiFile, language);
  }
public static CommonCodeStyleSettings getLocalLanguageSettings(Editor editor, int offset)