CodeStyleSettingsFacade (@NotNull Project project, @NotNull Document document, @NotNull FileType fileType) { PsiFile psiFile = PsiDocumentManager.getInstance(project).getPsiFile(document); return new DefaultCodeStyleSettingsFacade(psiFile == null ? getSettings(project) : getSettings(psiFile), fileType); }