private static CompilerReferenceServiceBase<?> getInstanceIfEnabled(Project project) {
    CompilerReferenceService service = CompilerReferenceService.getInstanceIfEnabled(project);
    if (service instanceof CompilerReferenceServiceBase<?>) return (CompilerReferenceServiceBase<?>)service;

    return null;
  }
private static CompilerReferenceServiceBase<?> getInstanceIfEnabled(Project project)