int (@NotNull UsageInfo info) { FileWithOffset offset0 = offset(); FileWithOffset offset1 = info.offset(); if (offset0 == null || offset1 == null) { return (offset0 == null ? 0 : 1) - (offset1 == null ? 0 : 1); } VirtualFile file0 = offset0.myFile; VirtualFile file1 = offset1.myFile; if (file0 == null || file1 == null) { return (file0 == null ? 0 : 1) - (file1 == null ? 0 : 1); } if (file0.equals(file1)) { return Integer.compare(offset0.myOffset, offset1.myOffset); } return file0.getPath().compareTo(file1.getPath()); }