Collection<PyElement> (@NotNull final PyClass from, @NotNull final Collection<PyMemberInfo<PyClass>> members, final PyClass @NotNull ... to) { final Collection<PyClass> elements = fetchElements(members); for (final PyClass destClass : to) { PyPsiRefactoringUtil.addSuperclasses(from.getProject(), destClass, elements.toArray(new PyClass[members.size()])); } final List<PyExpression> expressionsToDelete = getExpressionsBySuperClass(from, elements); for (final PyExpression expressionToDelete : expressionsToDelete) { expressionToDelete.delete(); } return Collections.emptyList(); //Hack: we know that "superclass expression" can't have reference }