boolean (ASTNode before, TokenSet expressions) { ASTNode node = before; while (node != null) { if (expressions.contains(node.getElementType())) return true; node = node.getTreeNext(); } return false; }