void (@NotNull final String memberToMove, final boolean toAbstract) { final String[] modules = {"dest_module", "source_module"}; configureMultiFile(ArrayUtil.mergeArrays(modules, "shared_module")); myFixture.configureByFile("source_module.py"); final String sourceClass = "MyClass"; final PyMemberInfo<PyElement> member = findMemberInfo(sourceClass, memberToMove); member.setToAbstract(toAbstract); final String destUrl = myFixture.getFile().getVirtualFile().getParent().findChild("dest_module.py").getUrl(); WriteCommandAction.writeCommandAction(myFixture.getProject()).run( () -> PyExtractSuperclassHelper.extractSuperclass(findClass(sourceClass), Collections.singleton(member), "NewParent", destUrl)); checkMultiFile(modules); }