void () { myFixture.addClass("package com.example.anno; @interface Anno {}"); myFixture.configureByFile("com/example/Imports.java"); IntentionAction action = myFixture.findSingleIntention(JavaAnalysisBundle.message("move.annotations.to.package.info.file.family.name")); String text = myFixture.getIntentionPreviewText(action); assertEquals(""" package com.example; import com.example.anno.Anno; class Imports {} ---------- @Deprecated @Anno package com.example; import com.example.anno.Anno;""", text); }