public PathReference fromString(@Nullable final String s, final ConvertContext context) {
   Module module = context.getModule();
   final XmlElement element = context.getXmlElement();
   return s == null || module == null || element == null
       ? null
       : PathReferenceManager.getInstance().getPathReference(s, module, element);
 }
 @NotNull
 public Collection<String> getVariants(final ConvertContext context) {
   Module module = context.getModule();
   if (module != null) {
     return MavenRepositoriesProvider.getInstance().getRepositoryIds();
   }
   return Collections.emptySet();
 }
    @NotNull
    public Collection<String> getVariants(final ConvertContext context) {
      Module module = context.getModule();

      if (module != null) {
        String name =
            MavenRepositoriesProvider.getInstance().getRepositoryName(getRepositoryId(context));
        if (!StringUtil.isEmptyOrSpaces(name)) return Collections.singleton(name);
      }
      return Collections.emptySet();
    }