void () { for (int i = 0; i < 10; i++) { myFixture.addClass("class Foo" + i + " {\n" + IntStreamEx.range(100).mapToObj(n -> "static int FOO" + n + " = 3;\n").joining() + "}"); } String text = IntStreamEx.range(10).mapToObj(i -> "import static Foo" + i + ".*;\n").joining() + "class C {\n" + IntStreamEx.range(100).mapToObj(n -> "String method" + n + "() {}\n").joining() + "{ " + "int localVariable = 2;\n" + "localV<caret>x }" + "}"; myFixture.configureByText("a.java", text); PlatformTestUtil.startPerformanceTest(getName(), 300, () -> { assertEquals(1, myFixture.completeBasic().length); }).setup(() -> { LookupImpl lookup = getLookup(); if (lookup != null) lookup.hideLookup(true); myFixture.type("\bV"); getPsiManager().dropPsiCaches(); assertNull(getLookup()); }).assertTiming(); }