public @Nullable IncludedRuntimeModule resolve(@NotNull RuntimeModuleRepository repository) {
    RuntimeModuleDescriptor descriptor;
    if (getImportance() == ModuleImportance.FUNCTIONAL) {
      descriptor = repository.getModule(getModuleId());
    }
    else {
      //todo print something to the log if optional module is missing
      descriptor = repository.resolveModule(getModuleId()).getResolvedModule();
    }
    if (descriptor != null) {
      return new IncludedRuntimeModuleImpl(descriptor, myImportance);
    }
    return null;
  }
public @Nullable IncludedRuntimeModule resolve(@NotNull RuntimeModuleRepository repository)