void () { final @Language("JAVA") String testFileData = """ import lombok.Data; @Data public class Test { public static void main(String[] args){ } } """; myFixture.configureByText("Test.java", testFileData); myFixture.addFileToProject("module-info.java", "module test { }"); String actualPreview = myFixture.getIntentionPreviewText(myFixture.findSingleIntention("Add 'requires static lombok' directive to module-info.java")); assertEquals(""" module test { requires static lombok; }""", actualPreview); }