@Nullable
  public static JavaResolveResult resolveJavaReference(@NotNull PsiReference reference) {
    return reference instanceof PsiJavaReference ? ((PsiJavaReference)reference).advancedResolve(false) : null;
  }
@Nullable
  public static JavaResolveResult resolveJavaReference(@NotNull PsiReference reference)