public XmlAttributeValuePattern withValue(final StringPattern valuePattern) {
    return with(new PatternCondition<>("withValue") {
      @Override
      public boolean accepts(@NotNull XmlAttributeValue xmlAttributeValue, ProcessingContext context) {
        return valuePattern.accepts(xmlAttributeValue.getValue(), context);
      }
    });
  }
public XmlAttributeValuePattern withValue(final StringPattern valuePattern)