void (@NotNull List<? super Block> result) { while (myCurrentChild != null) { if (StdTokenSets.COMMENT_BIT_SET.contains(myCurrentChild.getElementType()) || myCurrentChild.getElementType() == JavaDocElementType.DOC_COMMENT) { Block commentBlock = createJavaBlock( myCurrentChild, mySettings, myJavaSettings, Indent.getNoneIndent(), null, AlignmentStrategy.getNullStrategy(), getFormattingMode() ); result.add(commentBlock); myCurrentIndent = Indent.getNoneIndent(); } else if (!FormatterUtil.containsWhiteSpacesOnly(myCurrentChild)) { break; } myCurrentOffset += myCurrentChild.getTextLength(); myCurrentChild = myCurrentChild.getTreeNext(); } }