void (Editor editor, FoldingModelEx foldingModel, PsiFile file, List<RegionInfo> regionInfos) { foldingModel.runBatchFoldingOperationDoNotCollapseCaret(new UpdateFoldRegionsOperation(myProject, editor, file, regionInfos, UpdateFoldRegionsOperation.ApplyDefaultStateMode.YES, false, false)); try (AccessToken ignore = SlowOperations.knownIssue("IDEA-319892, EA-838676")) { initFolding(editor); } }