boolean (GrStatement statement, String value) { if (statement == null) { return false; } if (!(statement instanceof GrAssignmentExpression assignment)) { return false; } final GrExpression rhs = assignment.getRValue(); if (rhs == null) { return false; } final String rhsText = rhs.getText(); return value.equals(rhsText); }