Refactoring getMemberships() to exclude voided members

Hallo guys I am working on trying to refactor the getMemberships() method to exclude voided memberships. The problem is that there are two getMemberships() methods one being Boolean and another being a returning method.

When i try to set the includeVoided to false or try to change the boolean method it throughs an error of getMemberships must return voided memberships

Any ideas on how to go about this @k.joseph @dkayiwa @jwnasambu @herbert24

@suubi7 did you have a chance of reading the comments on the ticket before trying it out?

Yes i did.