Hello! I'm just starting to explore the possibilities of vaadin and addons

Hello! I’m just starting to explore the possibilities of vaadin and addons for him.
I have a question about sorting. I can not remove unnecessary files. I’m using the setFilter (FilenameFilter filter) method. The specified condition in FilenameFilter applies only to files for subfolders, but not to files in the main directory. Am I doing something wrong?)