public static Collection<VirtualFile> findDependsTo(Project project, VirtualFile file) {
    final Collection<VirtualFile> dependsFiles =
      FileBasedIndex.getInstance().getContainingFiles(NAME, getDependsIndexingKey(file.getName()),
                                                      GlobalSearchScopesCore.projectProductionScope(project));

    final Collection<VirtualFile> contentFiles =
      FileBasedIndex.getInstance().getContainingFiles(NAME, getContentIndexingKey(file.getNameWithoutExtension()),
                                                      GlobalSearchScopesCore.projectProductionScope(project));

    Collection<VirtualFile> allFiles = new ArrayList<>(dependsFiles);
    allFiles.addAll(contentFiles);
    return allFiles;
  }
public static Collection<VirtualFile> findDependsTo(Project project, VirtualFile file)