GroovyAssignmentExpressionPattern (final IElementType pattern) { return with(new PatternCondition<>("operation") { @Override public boolean accepts(@NotNull final GrAssignmentExpression psiBinaryExpression, final ProcessingContext context) { return pattern == psiBinaryExpression.getOperationTokenType(); } }); }