public boolean acceptsHints(final @NotNull PsiElement element, @NotNull PsiReferenceService.Hints hints) {
    final PsiElement target = hints.target;
    return target == null || acceptsTarget(target);
  }
public boolean acceptsHints(final @NotNull PsiElement element, @NotNull PsiReferenceService.Hints hints)