VirtualFile[] (DataContext context) { VirtualFile[] files = CommonDataKeys.VIRTUAL_FILE_ARRAY.getData(context); return files == null ? VirtualFile.EMPTY_ARRAY : Stream.of(files).filter(VirtualFile::isInLocalFileSystem).toArray(VirtualFile[]::new); }