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