void () { Registry.get("java.completion.methods.use.tags").setValue(true, getTestRootDisposable()); myFixture.configureByText("Test.java", """ import java.util.HashSet; public abstract class SuperClass { void run() { HashSet<Object> objects = new HashSet<>(); objects.le<caret>; } } """); LookupElement[] lookupElements = myFixture.complete(CompletionType.BASIC, 1); assertFalse(ContainerUtil.exists(lookupElements, t -> t.getLookupString().equals("size"))); lookupElements = myFixture.complete(CompletionType.BASIC, 2); assertTrue(ContainerUtil.exists(lookupElements, t -> t.getLookupString().equals("size"))); }