void (@NotNull PsiField variable, PsiElement newDeclaration) { CommentTracker tracker = new CommentTracker(); variable.normalizeDeclaration(); tracker.delete(variable); tracker.insertCommentsBefore(newDeclaration); }