void (@NotNull VirtualFileListener listener) { VirtualFileListener wrapper = new VirtualFileFilteringListener(listener, this); //noinspection deprecation VirtualFileManager.getInstance().addVirtualFileListener(wrapper); myListenerWrappers.put(listener, wrapper); }