Self (final @NotNull ElementPattern lengthPattern) { return with(new PatternConditionPlus<T, Integer>("withTextLength", lengthPattern) { @Override public boolean processValues(T t, ProcessingContext context, PairProcessor<? super Integer, ? super ProcessingContext> integerProcessingContextPairProcessor) { return integerProcessingContextPairProcessor.process(t.getTextLength(), context); } }); }