@Override
    public @Nullable PsiElement resolve(@NotNull PsiReference ref, boolean incompleteCode) {
      return ((CachingReference)ref).resolveInner();
    }
@Override
    public @Nullable PsiElement resolve(@NotNull PsiReference ref, boolean incompleteCode)