void ( @NotNull GradleSMTestProxy node, @NotNull Consumer<GradleSMTestProxy> process ) { while (node != null) { process.accept(node); node = ObjectUtils.tryCast(node.getParent(), GradleSMTestProxy.class); } }