public static JavaCodeStyleSettings getInstance(@NotNull PsiFile file) {
    return CodeStyle.getCustomSettings(file, JavaCodeStyleSettings.class);
  }
public static JavaCodeStyleSettings getInstance(@NotNull PsiFile file)