public static DirectoryIndex getInstance(Project project) {
    // todo enable later when all usages will be fixed
    //assert !project.isDefault() : "Must not call DirectoryIndex for default project";
    return project.getService(DirectoryIndex.class);
  }
public static DirectoryIndex getInstance(Project project)