private static Set<VersionConstraint> relaxForAnnotations(VersionConstraint constraint) {
    String annotationsConstraint = constraint.toString();

    Version version = constraint.getVersion();
    if (version != null) {
      String lower = chooseLowerBoundString(version);
      annotationsConstraint = "[" + lower + ", " + version + "-an10000]";
    }

    VersionRange range = constraint.getRange();
    if (range != null) {
      Version lowerBoundVersion = range.getLowerBound().getVersion();

      String lower = chooseLowerBoundString(lowerBoundVersion);
      String upper = range.getUpperBound().isInclusive()
                     ? range.getUpperBound().toString() + "-an10000]"
                     : range.getUpperBound().toString() + ")";
      annotationsConstraint = "[" + lower + ", " + upper;
    }

    try {
      return Collections.singleton(ourVersioning.parseVersionConstraint(annotationsConstraint));
    } catch (InvalidVersionSpecificationException e) {
      LOG.info("Failed to parse version constraint " + annotationsConstraint, e);
    }

    return Collections.singleton(constraint);
  }
private static Set<VersionConstraint> relaxForAnnotations(VersionConstraint constraint)