@Override
  public final @Nullable CommonCodeStyleSettings.IndentOptions getIndentOptions(@NotNull Project project,
                                                                                @NotNull CodeStyleSettings settings,
                                                                                @NotNull VirtualFile file) {
    Document document = FileDocumentManager.getInstance().getDocument(file);
    if (document != null) {
      PsiFile psiFile = PsiDocumentManager.getInstance(project).getPsiFile(document);
      if (psiFile != null) {
        return getIndentOptionsByPsiFile(settings, psiFile);
      }
    }
    return null;
  }
@Override
  public final @Nullable CommonCodeStyleSettings.IndentOptions getIndentOptions(@NotNull Project project,
                                                                                @NotNull CodeStyleSettings settings,
                                                                                @NotNull VirtualFile file)