static A nuLike too_thinkAndReturnFirstObjectOfType(Class type, TransformersOnObjects too) { ret withDeepReturn(returnSite -> { too.addTransformer(func(O o) { if (isInstance(type, o)) deepReturn(returnSite, (A) o); null; }); too.think(); }); }