public static <T extends PsiElement> @NotNull PsiReferenceBase<T> createSelfReference(T element,
                                                                                        TextRange rangeInElement,
                                                                                        final PsiElement resolveTo) {
    return new Immediate<>(element, rangeInElement, resolveTo);
  }
public static <T extends PsiElement> @NotNull PsiReferenceBase<T> createSelfReference(T element,
                                                                                        TextRange rangeInElement,
                                                                                        final PsiElement resolveTo)