Collection<VirtualFile> (@NotNull List<? extends RefreshRequest> requests) { Collection<VirtualFile> rootsToRefresh = new ArrayList<>(); for (RefreshRequest request : requests) { if (request == RefreshRequest.RELOAD_ALL) { myCurrentDataPack = DataPack.EMPTY; return myProviders.keySet(); } rootsToRefresh.addAll(request.rootsToRefresh); } return rootsToRefresh; }