void () { CommandProcessor.getInstance().executeCommand(getProject(), () -> WriteCommandAction.runWriteCommandAction(null, () -> { JavaCodeStyleManager.getInstance(getProject()).shortenClassReferences(myFixture.getFile()); PostprocessReformattingAspect.getInstance(getProject()).doPostponedFormatting(); PsiDocumentManager.getInstance(getProject()).commitAllDocuments(); }), "", ""); }