TokenParser (final int rightPriority, @NotNull final IElementType compositeType, @Nullable final String errorMessage) { return new ReducingParser() { @Override public @NotNull IElementType parseFurther(final PrattBuilder builder) { builder.createChildBuilder(rightPriority, errorMessage).parse(); return compositeType; } }; }