LPS-50861 Fix unsafe cast, there's no reason to cast too LiferayFileEntry since isInTrash calls DLFileEntry's method
LPS-50861 Cast isn't needed
LPS-50861 Simplify