Collection<VirtualFile> (List<VirtualFile> addedVFiles, VcsShowConfirmationOption.Value value, AbstractVcsHelper vcsHelper) { Collection<VirtualFile> filesToProcess; if (value == VcsShowConfirmationOption.Value.DO_ACTION_SILENTLY) { filesToProcess = addedVFiles; } else { final String singleFilePrompt; if (addedVFiles.size() == 1 && addedVFiles.get(0).isDirectory()) { //noinspection UnresolvedPropertyKey singleFilePrompt = message("confirmation.text.add.dir"); } else { //noinspection UnresolvedPropertyKey singleFilePrompt = message("confirmation.text.add.file"); } filesToProcess = vcsHelper.selectFilesToProcess(addedVFiles, message("confirmation.title.add.multiple.files"), null, message("confirmation.title.add.file"), singleFilePrompt, myAddConfirmation); } return filesToProcess; }