GroovyBinaryExpressionPattern (final ElementPattern pattern) { return with(new PatternCondition<>("operation") { @Override public boolean accepts(@NotNull final GrBinaryExpression psiBinaryExpression, final ProcessingContext context) { return pattern.accepts(psiBinaryExpression.getOperationTokenType(), context); } }); }