boolean (int dep) { for (ModuleRequiresRepr requires : Iterators.flat(Iterators.map(myPresent.reprsByName(dep, ModuleRepr.class), depModule -> depModule.getRequires()))) { if (requires.name == moduleRepr.name && requires.getVersion() == version) { return true; } } return false; }