void () { PsiUtil.markAsIdeaProject(getProject(), true); try { myFixture.copyFileToProject("registeredAction-plugin.xml", "someOtherPluginXmlName.xml"); myFixture.testHighlighting("RegisteredAction." + getSourceFileExtension()); } finally { PsiUtil.markAsIdeaProject(getProject(), false); } }