void () { configureByText(JavaFileType.INSTANCE, "class X{ static void foo(String s1, String s2, String s3) { foo(\"1\", 1.2, \"2\"<caret>); }}"); assertOneElement(highlightErrors()); List<IntentionAction> fixes = LightQuickFixTestCase.getAvailableActions(getEditor(), getFile()); IntentionAction intention = assertContainsOneOf(fixes, "Put arguments on separate lines"); assertNotNull(intention); WriteCommandAction.runWriteCommandAction(getProject(), () -> intention.invoke(getProject(), getEditor(), getFile())); assertOneElement(highlightErrors()); }