FindUsagesOptions (@NotNull Project project, final @Nullable DataContext dataContext) { FindUsagesOptions findUsagesOptions = new FindUsagesOptions(project, dataContext); findUsagesOptions.isUsages = true; findUsagesOptions.isSearchForTextOccurrences = true; return findUsagesOptions; }