while ((node != null) && (!(node instanceof VariableBase))) { if (node instanceof Predicate) ((Predicate)node).dontOptimize();
while ((node != null) && (!(node instanceof VariableBase)))
    public VariableBase findParentVariable() {	SyntaxTreeNode node = this;	while ((node != null) && (!(node instanceof VariableBase))) {	    if (node instanceof Predicate)		((Predicate)node).dontOptimize();	    node = node.getParent();	}	return (VariableBase)node;    }