void () { myFixture.configureByText("Test.groovy", """ def fn() { def str = "hello " <caret>+ "world"; } """); IntentionAction intention = myFixture.findSingleIntention("Copy string concatenation text to clipboard"); ModCommandAction action = intention.asModCommandAction(); assertNotNull(action); ModCommand command = action.perform(myFixture.getActionContext()); assertEquals(new ModCopyToClipboard("hello world"), command); }