This method is a conditional query. The conditional query cannot guarantee that only one piece of data can be queried, so the set is used as the return type.
set is fine, and you can even use Map to see if the business needs it. But basically no one will use Set, the data found in the database, generally in the sql to redo the operation.