As per @erikkemperman's comment in #246, we likely don't want to use `file.isDirectory()` inside the defaulter method.