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