static List<RegionInfo> getFoldingsFor(@NotNull PsiFile file, boolean quick) {
    if (file instanceof PsiCompiledFile) {
      file = ((PsiCompiledFile)file).getDecompiledPsiFile();
    }
    List<RegionInfo> foldingMap = new ArrayList<>();
    getFoldingsFor(file, foldingMap, quick);
    return foldingMap;
  }
static List<RegionInfo> getFoldingsFor(@NotNull PsiFile file, boolean quick)