void (@NotNull RemoteFileInfo info) { info.addDownloadingListener(new FileDownloadingAdapter() { @Override public void fileDownloaded(@NotNull VirtualFile localFile) { update(); } @Override public void errorOccurred(@NotNull String errorMessage) { update(); } @Override public void downloadingCancelled() { update(); } }); }