void () { createProjectPom(""" <artifactId>childA</artifactId> <groupId>mavenParen<caret>t</groupId> <version>1.0</version> <parent> <groupId>mavenParent</groupId> <artifactId>childA</artifactId> <version>1.0</version> </parent>"""); myFixture.configureFromExistingVirtualFile(myProjectPom); myFixture.doHighlighting(); for (IntentionAction intention : myFixture.getAvailableIntentions()) { if (intention.getText().startsWith("Remove ") && intention.getText().contains("<groupId>")) { myFixture.launchAction(intention); break; } } //doPostponedFormatting(myProject) PostprocessReformattingAspect.getInstance(myProject).doPostponedFormatting(); myFixture.checkResult(MavenTestCase.createPomXml(""" <artifactId>childA</artifactId> <version>1.0</version> <parent> <groupId>mavenParent</groupId> <artifactId>childA</artifactId> <version>1.0</version> </parent>""")); }