PsiElement2UsageTargetAdapter (@NotNull PsiElement elementToSearch, @NotNull FindUsagesOptions findUsagesOptions) { if (elementToSearch instanceof NavigationItem) { return new PsiElement2UsageTargetAdapter(elementToSearch, findUsagesOptions, false); } throw new IllegalArgumentException("Wrong usage target:" + elementToSearch + "; " + elementToSearch.getClass()); }