void () { myFixture.addClass(""" package com.example.x; public interface Exposed extends PackPrivate { int value(); } """); myFixture.addClass(""" package com.example.x; interface PackPrivate { Exposed CONSTANT = () -> 5; } """); myFixture.configureByText("Main.java", """ package com.example; import com.example.x.Exposed; public class Main { public static void main(String[] args) { test(CONST<caret>); } private static void test(Exposed exposed) { } }"""); myFixture.completeBasic(); myFixture.type('\n'); myFixture.checkResult(""" package com.example; import com.example.x.Exposed; public class Main { public static void main(String[] args) { test(Exposed.CONSTANT); } private static void test(Exposed exposed) { } }"""); }