public GenericDomValuePattern<T> withValue(final ElementPattern<?> pattern) {
    return with(new PatternCondition<>("withValue") {
      @Override
      public boolean accepts(final @NotNull GenericDomValue<T> genericDomValue, final ProcessingContext context) {
        return pattern.accepts(genericDomValue.getValue(), context);
      }
    });
  }
public GenericDomValuePattern<T> withValue(final ElementPattern<?> pattern)