void () { myFixture.configureByText("Test.java", """ /** * Hi {@link <error descr="Cannot resolve symbol 'ArrayList'"><caret>ArrayList</error>} */ class Test {} """); myFixture.checkHighlighting(); IntentionAction action = myFixture.findSingleIntention("Add qualifier"); myFixture.launchAction(action); myFixture.checkResult(""" import java.util.ArrayList; /** * Hi {@link ArrayList} */ class Test {} """); }