void () { myFixture.configureByText("Test.java", """ class Computer { void f() { double pi = Ma<caret>th.PI; } }"""); IntentionAction action = myFixture.findSingleIntention("Add on-demand static import for 'java.lang.Math'"); assertPreviewText(action, """ import static java.lang.Math.*; class Computer { void f() { double pi = PI; } }"""); }