Wrong IDE null complains

Describe the Bug

The compiler complains about a variable being nullable even after null checking.

Steps to Reproduce

Here are some examples:

private boolean isAnnualSubscription(@Nullable final LocalDate startDate, @Nullable final LocalDate endDate) {
        return !isEmpty(startDate) && !isEmpty(endDate) && endDate.isAfter(startDate.plusDays(361));
    }

The compiler complains endDate and startDate can be null in the las condition.

Another example:

private RepInfo findActiveRepForDate(
            @Nullable final List<ProcessedAssignment> assignments,
            final LocalDate date,
            final RepresentativeRelationship relationship) {
        if (!ObjectUtils.isEmpty(assignments)) {
            for (final ProcessedAssignment assignment : assignments) {
                if (assignment.isActiveOnDate(date)) {
                    return assignment.repInfo();
                }
            }
        }
        return buildRepInfo(REPRESENTATIVE_NO_REP_ID, relationship);
    }

The compiler still complains that assignments can be null after null checking with ObjectUtils.

Expected Behavior

To not complain after null checking

Screenshots / Screen Recordings

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.2.2 (Universal)
VSCode Version: 1.99.3
Commit: faa03b17cce93e8a80b7d62d57f5eda6bb6ab9f0
Date: 2025-07-07T06:07:27.002Z (4 days ago)
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.5.0

Does this stop you from using Cursor

No - Cursor works, but with this issue