FindUsagesOptions (final @Nullable DataContext dataContext) { FindUsagesOptions options = createFindUsagesOptions(getProject(), dataContext); options.isSearchForTextOccurrences &= isSearchForTextOccurrencesAvailable(getPsiElement(), false); return options; }