void () { myFixture.configureByText("Test.java", """ /** * {@snippet class=<error descr="Snippet file 'snippet-files/a/b/Hello.java' is not found">"a.<caret>b.Hello"</error>} */ class Test{} """); myFixture.checkHighlighting(); IntentionAction action = myFixture.findSingleIntention("Create file Hello.java"); myFixture.checkIntentionPreviewHtml(action, """ Create file <icon src="file"/>&nbsp;snippet-files#a#b#Hello.java<br/>\ including intermediate directories<br/>\ inside directory <icon src="dir"/>&nbsp;#src""".replace('#', File.separatorChar)); myFixture.launchAction(action); VirtualFile path = myFixture.getFile().getVirtualFile().findFileByRelativePath("../snippet-files/a/b/Hello.java"); assertTrue(path.exists()); }