public @NotNull StringPattern contains(final @NonNls @NotNull ElementPattern<Character> pattern) {
    return with(new PatternCondition<String>("contains") {
      @Override
      public boolean accepts(final @NotNull String str, final ProcessingContext context) {
        for (int i = 0; i < str.length(); i++) {
          if (pattern.accepts(str.charAt(i))) return true;
        }
        return false;
      }
    });
  }
public @NotNull StringPattern contains(final @NonNls @NotNull ElementPattern<Character> pattern)