void () { myFixture.addClass("class Another {static void test(int x, String y, StringBuilder z, Number a, Runnable r) {}}"); myFixture.configureByText("Test.java", """ class Test { void test() { int a = <caret>Another.test(123, null, null, null, null); } }"""); IntentionAction action = myFixture.findSingleIntention("Make 'test()' return 'int'"); assertNotNull(action); String text = IntentionPreviewPopupUpdateProcessor.getPreviewText(getProject(), action, getFile(), getEditor()); assertEquals(text, "static int test(int x, String y, StringBuilder z, Number a, ...)"); }