FindUsagesOptions (@Nullable final DataContext dataContext) { PsiElement element = getPsiElement(); if (element instanceof PsiPackage) { return myFactory.getFindPackageOptions(); } if (element instanceof PsiClass) { return myFactory.getFindClassOptions(); } if (element instanceof PsiMethod) { return myFactory.getFindMethodOptions(); } if (element instanceof PsiVariable) { return myFactory.getFindVariableOptions(); } if (ThrowSearchUtil.isSearchable(element)) { return myFactory.getFindThrowOptions(); } return super.getFindUsagesOptions(dataContext); }