boolean (@NotNull VirtualFile f) { processQueue(); // if a marker is retained, then so is its node and the whole tree // (ignore the race when marker is gc-ed right after this call - it's harmless) return dereference(f.getUserData(RANGE_MARKERS_KEY)) != null || dereference(f.getUserData(PERSISTENT_RANGE_MARKERS_KEY)) != null; }