How to get FilterEntity used by Filter component?

How to get FilterEntity used by Filter component ?
There is filter.setFilterEntity(…) method but no getFilterEntity().

My goal is pass values for properties of opening screen “having default for me” or “global default” filter.

Hi,
There is a listener method for that:
com.haulmont.cuba.gui.components.Filter#addFilterEntityChangeListener

FilterEntityChangeListener - is triggered when a filter is selected
for the first time on a component initialization or later from the list of saved filters.

https://doc.cuba-platform.com/manual-7.2/gui_Filter.html#gui_Filter_FilterEntityChangeListener