Find all elements

The following would not work:

You should rather write:

import org.openqa.selenium.WebElement
...
List<WebElement> loansList = WebUI.findWebElements(findTestObject('Object Repository/Pages/CleanUp/loansDetailsList'))

Katalon hasn’t published a document for the findWebElements keyword but it is available,
see Document for WebUI.findWebElements(TestObject) is missing