Remove repeated computation that slipped in there by accident.
Use the "Reference to a static method" idiom instead of an explicit lambda.  Java has discovered alpha conversion :).
Create factory methods for the three kinds of nodes and use them consistently.