Moved nullSafeListFiles to FilesHelper