void (FilePath filePath) { if (acceptFilePath(filePath, false)) { myComposite.getUnversionedFileHolder().addFile(myScope.getVcs(), filePath); SwitchedFileHolder switchedFileHolder = myComposite.getSwitchedFileHolder(); if (!switchedFileHolder.isEmpty()) { // if a file was previously marked as switched through recursion, remove it from switched list VirtualFile file = filePath.getVirtualFile(); if (file != null) { switchedFileHolder.removeFile(file); } } } }