PsiElement (UsageTarget @NotNull [] searchFor) { UsageTarget target = searchFor[0]; if (!(target instanceof PsiElementUsageTarget)) return null; return ReadAction.compute(((PsiElementUsageTarget)target)::getElement); }