private static boolean isIterableOrArray(final PsiType type) {
    if (type instanceof PsiClassType) {
      return InheritanceUtil.isInheritor(type, CommonClassNames.JAVA_LANG_ITERABLE);
    }
    return type instanceof PsiArrayType;
  }
private static boolean isIterableOrArray(final PsiType type)