void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { final PsiField variable = PsiTreeUtil.getParentOfType(element, PsiField.class); if (variable == null) return; final List<PsiElement> newDeclarations = moveDeclaration(variable); if (newDeclarations.isEmpty()) return; updater.moveTo(newDeclarations.get(newDeclarations.size() - 1)); newDeclarations.forEach(declaration -> inlineRedundant(declaration)); }