void (@NotNull JavaCodeFragment codeFragment) { startElement(codeFragment); int prevOffset = myCurrentFlow.getSize(); PsiElement[] children = codeFragment.getChildren(); for (PsiElement child : children) { ProgressManager.checkCanceled(); child.accept(this); } finishElement(codeFragment); registerSubRange(codeFragment, prevOffset); }