List<Path> (@NotNull RuntimeModuleId moduleId) { RawRuntimeModuleDescriptor rawDescriptor = getRawDescriptors().get(moduleId.getStringId()); if (rawDescriptor == null) { throw new MalformedRepositoryException("Cannot find module '" + moduleId.getStringId() + "'"); } //todo improve this to reuse the computed paths if the module is resolved later return new RuntimeModuleDescriptorImpl(moduleId, myBasePath, rawDescriptor.getResourcePaths(), Collections.emptyList()).getResourceRootPaths(); }