void (Object @NotNull [] dependencies, @NotNull List<? super Object> resultingDeps) { for (Object dependency : dependencies) { if (dependency == ObjectUtils.NULL) continue; if (dependency instanceof Object[]) { collectDependencies((Object[])dependency, resultingDeps); } else { resultingDeps.add(dependency); } } }