void (List<String> filePaths, Project project) { VirtualFile[] files = filePaths.stream().map(path -> { var file = findFile(path, project); if (file == null) { throw new IllegalArgumentException("File not found " + path); } return file; }).toArray(VirtualFile[]::new); markDirtyAndRefresh(false, true, true, files); }