EqualsCheck (@Nullable PsiExpression maybeEqualsCheckExpression) { final Negated n = Negated.create(maybeEqualsCheckExpression); if (n != null && n.expression instanceof PsiMethodCallExpression callExpression) { if (HardcodedMethodConstants.EQUALS.equals(callExpression.getMethodExpression().getReferenceName())) { final PsiExpression argument = getArgumentExpression(callExpression); final PsiExpression qualifier = getQualifierExpression(callExpression); if (argument != null && qualifier != null) { return new EqualsCheck(argument, qualifier, n.isEqual); } } } return null; }