Object (@NotNull List<MavenSimpleNode> selectedNodes) { final List<VirtualFile> files = new ArrayList<>(); for (MavenSimpleNode each : selectedNodes) { VirtualFile file = each.getVirtualFile(); if (file != null && file.isValid()) files.add(file); } return files.isEmpty() ? null : VfsUtilCore.toVirtualFileArray(files); }