EqualityToEqualsFix (PsiBinaryExpression expression) { final PsiExpression lhs = PsiUtil.skipParenthesizedExprDown(expression.getLOperand()); final Nullability nullability = NullabilityUtil.getExpressionNullability(expression.getLOperand(), true); if (nullability == Nullability.NULLABLE) return null; if (lhs instanceof PsiReferenceExpression referenceExpression) { final PsiElement target = referenceExpression.resolve(); if (target instanceof PsiModifierListOwner) { NullableNotNullManager.getInstance(expression.getProject()); if (NullableNotNullManager.isNullable((PsiModifierListOwner)target)) { return null; } } } return new EqualityToEqualsFix(JavaTokenType.NE.equals(expression.getOperationTokenType())); }