void (TreeElement element) { if (CodeEditUtil.isMarkedToReformatBefore(element)) { CodeEditUtil.markToReformatBefore(element, false); rangesToProcess.add(new ReformatWithHeadingWhitespaceTask( document.createRangeMarker(element.getStartOffset(), element.getStartOffset())) ); } else if (CodeEditUtil.isMarkedToReformat(element)) { CodeEditUtil.markToReformat(element, false); rangesToProcess.add(new ReformatWithHeadingWhitespaceTask( document.createRangeMarker(element.getStartOffset(), element.getStartOffset() + element.getTextLength())) ); } super.visitNode(element); }