CharSequence (LighterASTNode newNode, FlyweightCapableTreeStructure<LighterASTNode> structure) { Ref<LighterASTNode[]> childrenRef = Ref.create(null); int childrenCount = structure.getChildren(newNode, childrenRef); LighterASTNode[] children = childrenRef.get(); try { for (LighterASTNode aChildren : children) { if (aChildren.getTokenType() == PropertiesTokenTypes.KEY_CHARACTERS) { return ((LighterASTTokenNode)aChildren).getText(); } } return null; } finally { structure.disposeChildren(children, childrenCount); } }