@NotNull
  public IndentOptions getIndentOptionsByFile(@Nullable PsiFile file) {
    if (file != null) {
      VirtualFile virtualFile = file.getVirtualFile();
      if (virtualFile != null) {
        return getIndentOptionsByFile(file.getProject(), virtualFile, null);
      }
      else {
        return getIndentOptions(file.getFileType());
      }
    }
    return OTHER_INDENT_OPTIONS;
  }
@NotNull
  public IndentOptions getIndentOptionsByFile(@Nullable PsiFile file)