static @Nullable PsiJavaCodeReferenceElement findJavaReference(@NotNull PsiFile file, int offset) {
    return PsiTreeUtil.findElementOfClassAtOffset(file, offset, PsiJavaCodeReferenceElement.class, false);
  }
static @Nullable PsiJavaCodeReferenceElement findJavaReference(@NotNull PsiFile file, int offset)