// RUN_PIPELINE_TILL: BACKEND
// FIR_IDENTICAL

// FILE: Inlay.java
public interface Inlay<T extends EditorCustomElementRenderer> {
    @org.jetbrains.annotations.NotNull T getRenderer();
}

// FILE: test.kt
interface EditorCustomElementRenderer
interface PresentationContainerRenderer<Constraints : Any> : EditorCustomElementRenderer

fun test(inlay: Inlay<out PresentationContainerRenderer<*>>) {
    inlay.renderer.addOrUpdate()
}

fun <T : Any> PresentationContainerRenderer<T>.addOrUpdate() {}

/* GENERATED_FIR_TAGS: capturedType, dnnType, funWithExtensionReceiver, functionDeclaration, interfaceDeclaration,
javaProperty, javaType, outProjection, starProjection, typeConstraint, typeParameter */
