Optimize this node within parent.
Subclasses should override this method to perform necessary optimizations.
@override void optimize() {/* no-op */}