void () { String source = """ class X { void test() {}interface }"""; PsiJavaFile file = (PsiJavaFile)createLightFile("test.java", source); FileASTNode fileNode = file.getNode(); assertNotNull(fileNode); assertFalse(fileNode.isParsed()); StubElement<?> element = myBuilder.buildStubTree(file); @SuppressWarnings("rawtypes") List<StubElement> stubs = element.getChildrenStubs(); assertSize(2, stubs); PsiClassStub<?> classStub = (PsiClassStub<?>)stubs.get(1); assertFalse(classStub.isInterface()); }