void (GenerationNode node) { final String surroundedText = node.getSurroundedText(); if (surroundedText != null) { node.setSurroundedText(PATTERN.matcher(surroundedText).replaceAll("")); } for (GenerationNode child : node.getChildren()) { doFilter(child); } }