// RUN_PIPELINE_TILL: FRONTEND
// ISSUE: KT-58665
// FULL_JDK

import java.util.*

fun use(x: String?) {
    Optional.of(<!TYPE_MISMATCH!>x<!>)
}

/* GENERATED_FIR_TAGS: functionDeclaration, javaFunction, nullableType */
