private static boolean allowResolveToType(@NotNull PyType type) {
      return type instanceof PyClassLikeType || type instanceof PyModuleType || type instanceof PyImportedModuleType ||
             type instanceof PyTypeVarType;
    }
private static boolean allowResolveToType(@NotNull PyType type)