void (@NotNull Collection<Object> matchElementsArray, @NotNull Collection<? super Usage> usages, @NotNull List<? super PsiElement> targets) { for (Object o : matchElementsArray) { if (o instanceof PsiElement element) { if (element.getTextRange() != null) { usages.add(new MyUsageInfo2UsageAdapter(element, false)); } else { targets.add(element); } } } }