void (@NotNull Project project, @NotNull PsiElement methodName, @NotNull ModPsiUpdater updater) { final PsiElement parent = methodName.getParent(); if (!(parent instanceof PsiMethod method)) { return; } final PsiCodeBlock body = method.getBody(); final PsiElementFactory factory = JavaPsiFacade.getElementFactory(project); final PsiStatement newStatement = factory.createStatementFromText("super();", null); final CodeStyleManager styleManager = CodeStyleManager.getInstance(project); if (body == null) { return; } final PsiJavaToken brace = body.getLBrace(); body.addAfter(newStatement, brace); styleManager.reformat(body); }