void (final ASTNode treePrev, final LeafElement whiteSpaceElement) { for (WhiteSpaceFormattingStrategy strategy : WhiteSpaceFormattingStrategyFactory.getAllStrategies()) { if (strategy.addWhitespace(treePrev, whiteSpaceElement)) { return; } } final ASTNode treeParent = treePrev.getTreeParent(); treeParent.addChild(whiteSpaceElement, treePrev); }