static boolean isResolved(@NotNull PsiReference reference) {
    if (reference instanceof PsiPolyVariantReference) {
      return ((PsiPolyVariantReference)reference).multiResolve(false).length > 0;
    }
    return reference.resolve() != null;
  }
static boolean isResolved(@NotNull PsiReference reference)