/** * Immutable fields, can be shared. */ @Override public ConstructionNode clone() { return new ConstructionNodeImpl(projectedVariables, substitution, optionalModifiers, nullabilityEvaluator); }
newSubstitutionMapBuilder.build()); ConstructionNode newConstructionNode = new ConstructionNodeImpl(projectedVariables, newSubstitution, getOptionalModifiers(), nullabilityEvaluator);
ConstructionNode newConstructionNode = new ConstructionNodeImpl(newProjectedVariables, newSubstitutions.bindings, newOptionalModifiers, nullabilityEvaluator);