void (@NotNull Project project, @NotNull PsiElement startElement, @NotNull ModPsiUpdater updater) { PsiTypeElement cast = PsiTreeUtil.getNonStrictParentOfType(startElement, PsiTypeElement.class); if (cast == null) return; CodeStyleManager.getInstance(project).reformat(new CommentTracker().replace(cast, myTargetType)); }