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