void () { VirtualFile file = getTempDir().createVirtualFile(".txt", "xxxx"); PsiFile psiFile = Objects.requireNonNull(getPsiManager().findFile(file)); FindResultUsageInfo info1 = new FindResultUsageInfo(FindManager.getInstance(myProject), psiFile, 1, new FindModel(), new FindResultImpl(1, 2)); FindResultUsageInfo info2 = new FindResultUsageInfo(FindManager.getInstance(myProject), psiFile, 2, new FindModel(), new FindResultImpl(2, 3)); assertValue(info1.compareToByStartOffset(info2), v -> v < 0); assertValue(ua(info1).compareTo(ua(info2)), v -> v < 0); }