void (Map<VirtualFile, MoveDirectoryWithClassesProcessor.TargetDirectoryWrapper> filesToMove, PsiDirectory[] directoriesToMove, Collection<? super UsageInfo> result, boolean searchInComments, boolean searchInNonJavaFiles, Project project) { Set<PsiFile> psiFiles = filesToMove.keySet().stream().map(PsiManager.getInstance(project)::findFile) .filter(Objects::nonNull) .collect(Collectors.toSet()); findUsages(psiFiles, directoriesToMove, result, searchInComments, searchInNonJavaFiles, project); }