record (@NotNull PsiExpression compared, boolean isEqual) { @Nullable private static NullCheck create(@Nullable PsiExpression maybeNullCheckExpression) { final Negated n = Negated.create(maybeNullCheckExpression); if (n != null && n.expression instanceof PsiBinaryExpression binaryExpression) { PsiExpression comparedWithNull = PsiUtil.skipParenthesizedExprDown(ExpressionUtils.getValueComparedWithNull(binaryExpression)); if (comparedWithNull != null) { boolean equal = JavaTokenType.EQEQ.equals(binaryExpression.getOperationTokenType()); return new NullCheck(comparedWithNull, equal == n.isEqual); } } return null; } }