boolean (final ASTNode child) { if (child == null) return false; if (child.getElementType() == JavaElementType.BLOCK_STATEMENT) return true; if (child.getElementType() == JavaElementType.CODE_BLOCK) return true; if (FormatterUtil.containsWhiteSpacesOnly(child)) return isPartOfCodeBlock(child.getTreeNext()); if (child.getElementType() == JavaTokenType.END_OF_LINE_COMMENT) return isPartOfCodeBlock(child.getTreeNext()); return child.getElementType() == JavaDocElementType.DOC_COMMENT; }