public static int getIndent(@NotNull PsiFile file, String text, boolean includeNonSpace) {
    return getIndent(CodeStyle.getIndentOptions(file), text, includeNonSpace);
  }
public static int getIndent(@NotNull PsiFile file, String text, boolean includeNonSpace)