protected boolean isEnabled(@NotNull Project project, @Nullable VcsKey vcsKey) {
    if (project.isDefault()) return true;
    if (vcsKey == null) return false;
    List<VcsDirectoryMapping> mappings = ProjectLevelVcsManager.getInstance(project).getDirectoryMappings();
    return ContainerUtil.exists(mappings, it -> vcsKey.getName().equals(it.getVcs()));
  }
protected boolean isEnabled(@NotNull Project project, @Nullable VcsKey vcsKey)