package defpackage;

import java.util.Collections;
import kotlin.reflect.KClass;
import kotlin.reflect.KType;
import kotlin.reflect.KTypeProjection;
import kotlin.reflect.jvm.internal.ReflectionFactoryImpl;

/* JADX INFO: loaded from: classes3.dex */
public class iw7 {
    public static final kw7 a;
    public static final KClass[] b;

    static {
        kw7 kw7Var = null;
        try {
            kw7Var = (kw7) ReflectionFactoryImpl.class.newInstance();
        } catch (ClassCastException | ClassNotFoundException | IllegalAccessException | InstantiationException unused) {
        }
        if (kw7Var == null) {
            kw7Var = new kw7();
        }
        a = kw7Var;
        b = new KClass[0];
    }

    public static KType a(Class cls) {
        kw7 kw7Var = a;
        return kw7Var.typeOf(kw7Var.getOrCreateKotlinClass(cls), Collections.EMPTY_LIST, false);
    }

    public static KType b(Class cls, KTypeProjection kTypeProjection) {
        kw7 kw7Var = a;
        return kw7Var.typeOf(kw7Var.getOrCreateKotlinClass(cls), Collections.singletonList(kTypeProjection), false);
    }

    public static KType c(Class cls, KTypeProjection... kTypeProjectionArr) {
        kw7 kw7Var = a;
        return kw7Var.typeOf(kw7Var.getOrCreateKotlinClass(cls), st.al(kTypeProjectionArr), false);
    }
}
