Boilerplate which avoids having to use generics. Instead of Property<File>, use FileProperty.
Property<File>
FileProperty
Returns a read-only view of this mutable FileProperty. Typical usage :