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