void (List<? super VirtualFile> addedVFiles, Map<VirtualFile, File> copyFromMap, Set<? super VirtualFile> recursiveItems) { final Collection<AddedFileInfo> addedFileInfos = new ArrayList<>(myAddedFiles); myAddedFiles.clear(); for (AddedFileInfo addedFileInfo : addedFileInfos) { final File ioFile = new File(getIOFile(addedFileInfo.myDir), addedFileInfo.myName); VirtualFile addedFile = addedFileInfo.myDir.findChild(addedFileInfo.myName); if (addedFile == null) { addedFile = LocalFileSystem.getInstance().refreshAndFindFileByIoFile(ioFile); } if (addedFile != null) { final Status fileStatus = getFileStatus(ioFile); if (fileStatus == null || !fileStatus.is(StatusType.STATUS_IGNORED)) { boolean isIgnored = ChangeListManager.getInstance(myVcs.getProject()).isIgnoredFile(addedFile); if (!isIgnored) { addedVFiles.add(addedFile); copyFromMap.put(addedFile, addedFileInfo.myCopyFrom); if (addedFileInfo.myRecursive) { recursiveItems.add(addedFile); } } } } } }