@Nullable
  private static Module getModule(@NotNull VirtualFile file, @Nullable Project project) {
    ProjectFileIndex index = getProjectFileIndex(project);
    return index == null ? null : index.getModuleForFile(file);
  }
@Nullable
  private static Module getModule(@NotNull VirtualFile file, @Nullable Project project)