void () { var fieldCount = 7000; @Language("JAVA") String constantClass = "interface Constants {" + IntStreamEx.range(fieldCount).mapToObj(n -> "String field" + n + " = \"x\";\n").joining() + "}"; myFixture.addClass(constantClass); myFixture.configureByText("a.java", "import static Constants.*; class C { { field<caret>x } }"); PlatformTestUtil.startPerformanceTest(getName(), 10_000, () -> { int length = myFixture.completeBasic().length; assertTrue(String.valueOf(length), length > 100); }).setup(() -> { LookupImpl lookup = getLookup(); if (lookup != null) lookup.hideLookup(true); myFixture.type("\bd"); getPsiManager().dropPsiCaches(); assertNull(getLookup()); }).assertTiming(); }