[BACKLOG-133] Tree rest call file filtering does not work properly

No need to check contains() as the Set will do that for you.