void () { myFixture.configureByText("X.java", "class StriFoo{}final class StriBar{}class X extends Stri<caret>"); myFixture.completeBasic(); List<String> expected = List.of( "StriFoo", // non-final project class "StringIndexOutOfBoundsException", "StringTokenizer", "StringConcatException", "StringReader", "StringWriter", // non-final library classes "StringBufferInputStream", // deprecated library class "StriBar", // final project class (red) "StringTemplate"); // interface (red) assertEquals(expected, myFixture.getLookupElementStrings()); }