why not just typehint the type in the method? we do not extend any class and NodeInterface has no addChild method with different signature.