}
checkEqualityBefore(expression, false, variable, otherVariable);</BUG>
}
return true;
}
<BUG>private void checkEqualityBefore(PsiExpression expression, boolean equals, PsiVariable variable1, PsiVariable variable2) {
final PsiElement parent = PsiTreeUtil.skipParentsOfType(expression, PsiParenthesizedExpression.class);</BUG>
if (parent instanceof PsiBinaryExpression) {
<BUG>final PsiBinaryExpression binaryExpression = (PsiBinaryExpression)parent;
if (PsiTreeUtil.isAncestor(binaryExpression.getROperand(), expression, false)) {</BUG>
final PsiExpression lhs = binaryExpression.getLOperand();

}
}
}
return false;
}
@Nullable
private PsiExpression checkEqualityBefore(PsiExpression expression, boolean equal, String qualifiedName1, String qualifiedName2) {
final PsiElement parent = PsiTreeUtil.skipParentsOfType(expression, PsiParenthesizedExpression.class);
if (parent instanceof PsiBinaryExpression) {
final PsiBinaryExpression binaryExpression = (PsiBinaryExpression)parent;
final IElementType tokenType = binaryExpression.getOperationTokenType();
if (equal && JavaTokenType.OROR.equals(tokenType) || !equal && JavaTokenType.ANDAND.equals(tokenType)) {
if (PsiTreeUtil.isAncestor(binaryExpression.getROperand(), expression, false)) {
