private static boolean isEnabled(@Nullable Project project) {
    if (project == null || !TrustedProjects.isTrusted(project)) return false;
    ProjectLevelVcsManagerImpl manager = ProjectLevelVcsManagerImpl.getInstanceImpl(project);
    return manager.haveVcses() && !manager.hasAnyMappings();
  }
private static boolean isEnabled(@Nullable Project project)