void (ModuleChunk chunk, JpsJavaClasspathKind kind, Consumer<? super JpsModule> processor) { JpsJavaExtensionService.getInstance().enumerateDependencies(chunk.getModules()).includedIn(kind).recursively().processModules(processor); }