protected @Nullable Collection<String> getStringsToSearch(final @NotNull PsiElement element) {
    if (element instanceof PsiNamedElement) {
      return ContainerUtil.createMaybeSingletonList(((PsiNamedElement)element).getName());
    }

    return Collections.singleton(element.getText());
  }
protected @Nullable Collection<String> getStringsToSearch(final @NotNull PsiElement element)