@NotNull
  @Override
  public JpsModuleReference createModuleReference(@NotNull String moduleName) {
    if (hasCustomReferenceFactory()) {
      for (JpsReferenceCustomFactory extension : JpsServiceManager.getInstance().getExtensions(JpsReferenceCustomFactory.class)) {
        if (extension.isEnabled()) {
          return extension.createModuleReference(moduleName);
        }
      }
    }
    return new JpsModuleReferenceImpl(moduleName);
  }
@NotNull
  @Override
  public JpsModuleReference createModuleReference(@NotNull String moduleName)