void (final List<? extends VirtualFile> files) { if (!myChooserDescriptor.isChooseMultiple() && !files.isEmpty()) { selectInTree(new VirtualFile[]{files.get(0)}, true, true); } else { selectInTree(VfsUtilCore.toVirtualFileArray(files), true, true); } }