private static void constractFilesInDependenciesPackagesMap(final PsiPackage pack,
                                                              final PsiPackage depPackage,
                                                              final PsiFile file,
                                                              final Map<PsiPackage, Map<PsiPackage, Set<PsiFile>>> filesInDependentPackages) {
    Map<PsiPackage, Set<PsiFile>> dependentPackages2Files = filesInDependentPackages.get(pack);
    if (dependentPackages2Files == null) {
      dependentPackages2Files = new HashMap<>();
      filesInDependentPackages.put(pack, dependentPackages2Files);
    }
    Set<PsiFile> depFiles = dependentPackages2Files.get(depPackage);
    if (depFiles == null) {
      depFiles = new HashSet<>();
      dependentPackages2Files.put(depPackage, depFiles);
    }
    depFiles.add(file);
  }
private static void constractFilesInDependenciesPackagesMap(final PsiPackage pack,
                                                              final PsiPackage depPackage,
                                                              final PsiFile file,
                                                              final Map<PsiPackage, Map<PsiPackage, Set<PsiFile>>> filesInDependentPackages)