Changed to return core.inherit to get rid of an IntelliJ warning.