List<VirtualFile> (@NotNull List<VirtualFile> list, @NotNull List<VirtualFile> filteredOut) { List<VirtualFile> result = new ArrayList<>(); filteredOut.clear(); for (VirtualFile file : list) { if (!isStubPath(file)) { result.add(file); } else { filteredOut.add(file); } } return result; }