Collection<PsiReference> (@NotNull PsiElement element, @NotNull SearchScope searchScope, boolean searchInCommentsAndStrings) { if (!RefactoringSettings.getInstance().RENAME_SEARCH_FOR_REFERENCES_FOR_DIRECTORY) { return Collections.emptyList(); } return ReferencesSearch.search(element, searchScope).findAll(); }