import org.jetbrains.plugins.groovy.lang.lexer.GroovyTokenTypes;</BUG>
import org.jetbrains.plugins.groovy.lang.psi.api.statements.expressions.GrBinaryExpression;
import org.jetbrains.plugins.groovy.lang.psi.api.statements.expressions.GrExpression;
public class GrInspectionUtil {
<BUG>public static boolean isNull(GrExpression expression) {
</BUG>
return "null".equals(expression.getText());
}
<BUG>public static boolean isEquality(GrBinaryExpression binaryCondition) {
</BUG>
final IElementType tokenType = binaryCondition.getOperationTokenType();

package org.jetbrains.plugins.groovy.codeInspection;
import com.intellij.psi.tree.IElementType;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.plugins.groovy.lang.lexer.GroovyTokenTypes;
import org.jetbrains.plugins.groovy.lang.psi.api.statements.expressions.GrBinaryExpression;
import org.jetbrains.plugins.groovy.lang.psi.api.statements.expressions.GrExpression;
public class GrInspectionUtil {
public static boolean isNull(@NotNull GrExpression expression) {
return "null".equals(expression.getText());
}
public static boolean isEquality(@NotNull GrBinaryExpression binaryCondition) {
final IElementType tokenType = binaryCondition.getOperationTokenType();
