void () { addPluginXml("idea_core", """ <id>com.intellij</id> <extensionPoints> <extensionPoint name="completion.contributor"/> <extensionPoint name="myService" beanClass="foo.MyServiceDescriptor"/> </extensionPoints> """); myFixture.addClass(""" package foo; import com.intellij.util.xmlb.annotations.Attribute; public class MyServiceDescriptor { @Attribute public String serviceImplementation; }"""); myFixture.addClass("package foo; public class Foo { public static class Fubar {} }"); myFixture.configureByFile(getTestName(false) + ".xml"); myFixture.completeBasic(); myFixture.type('\n'); myFixture.checkResultByFile(getTestName(false) + "_after.xml"); }