private static boolean isAssignableFromString(PsiType type, PsiElement context) {
    if (type == null) {
      return false;
    }
    return type.getDeepComponentType().isAssignableFrom(TypeUtils.getStringType(context));
  }
private static boolean isAssignableFromString(PsiType type, PsiElement context)