// RUN_PIPELINE_TILL: BACKEND
// FILE: Utils.java

public class Utils {
    public static String[] getStrings() {
        return new String[0];
    }
}

// FILE: Main.kt

fun <T> myListOf(vararg elements: T): List<T> = null!!
fun <T> myListOf(element: T): List<T> = null!!

fun takeStrings(list: List<String>) {}

fun getStrings(): Array<String> = null!!

fun testFromKotlin() {
    val values = getStrings()
    val list = myListOf(*values)
    takeStrings(list)
}

fun testFromJava() {
    val values = Utils.getStrings()
    val list = myListOf(*values)
    takeStrings(list)
}

/* GENERATED_FIR_TAGS: checkNotNullCall, flexibleType, functionDeclaration, javaFunction, localProperty, nullableType,
propertyDeclaration, typeParameter, vararg */
