static @NotNull CommonCodeStyleSettings.IndentOptions getIndentOptions(@NotNull CodeStyleSettings settings,
                                                                         @NotNull Project project,
                                                                         @NotNull PsiFile psiFile,
                                                                         @Nullable Document document,
                                                                         @Nullable TextRange textRange) {
    VirtualFile virtualFile = getVirtualFile(psiFile, document);
    return virtualFile != null ?
           settings.getIndentOptionsByFile(project, virtualFile, textRange) :
           settings.getIndentOptions(psiFile.getFileType());
  }
static @NotNull CommonCodeStyleSettings.IndentOptions getIndentOptions(@NotNull CodeStyleSettings settings,
                                                                         @NotNull Project project,
                                                                         @NotNull PsiFile psiFile,
                                                                         @Nullable Document document,
                                                                         @Nullable TextRange textRange)