change collections in FileListener synchronized