boolean (@Nullable Object o, ProcessingContext context) { if (!(o instanceof GroovyPsiElement)) return false; PsiElement parent = ((GroovyPsiElement)o).getParent(); if (!(parent instanceof GrAssignmentExpression)) return false; if (((GrAssignmentExpression)parent).getRValue() != o) return false; return assignment.accepts(parent, context) && value.accepts(o, context); }