@Override
    public PsiReference @NotNull [] getReferencesByString(String str,
                                                          final @NotNull PsiElement position,
                                                          int offsetInPosition) {
      if (str.length() == 0) return PsiReference.EMPTY_ARRAY;
      final PsiReference[] references = super.getReferencesByString(str, position, offsetInPosition);
      final int offset = position instanceof XmlTag ? 1 : 0;
      if (references.length <= offset) return PsiReference.EMPTY_ARRAY;
      final PsiReference[] results = new PsiReference[references.length - offset];
      for (int i = 0; i < results.length; i++) {
        results[i] = new JavaClassReferenceWrapper(references[i], position);
      }
      return results;
    }
@Override
    public PsiReference @NotNull [] getReferencesByString(String str,
                                                          final @NotNull PsiElement position,
                                                          int offsetInPosition)