void (@NotNull Project project, @NotNull PsiElement startElement, @NotNull ModPsiUpdater updater) { BlockData info = getBlockInfo(startElement); if (info == null) return; final PsiStatement[] statements = info.block().getCodeBlock().getStatements(); if (statements.length != 1) return; CommentTracker commentTracker = new CommentTracker(); final String text = commentTracker.text(statements[0]); final PsiElement replacementExp = commentTracker.replace(info.block(), text); CodeStyleManager.getInstance(project).reformat(replacementExp); commentTracker.insertCommentsBefore(info.statement()); }