Collection<PyElement> (@NotNull final PyClass from, @NotNull final Collection<? extends PyAssignmentStatement> statements, final PyClass @NotNull ... to) { //TODO: Copy/paste with InstanceFieldsManager. Move to parent? final Collection<PyElement> result = new ArrayList<>(); for (final PyClass destClass : to) { result.addAll(PyClassRefactoringUtil.copyFieldDeclarationToStatement(statements, destClass.getStatementList(), destClass)); } deleteElements(statements); return result; }