@Override
  public boolean processCheckedOutDirectory(@NotNull Project project, @NotNull Path directory) {
    File[] files = directory.toFile().listFiles((dir, name) -> dir.isFile() && name.endsWith(ProjectFileType.DOT_DEFAULT_EXTENSION));
    if (files != null && files.length > 0) {
      ProjectUtil.openProject(files[0].toPath(), OpenProjectTask.build().withProjectToClose(project));
      return true;
    }
    return false;
  }
@Override
  public boolean processCheckedOutDirectory(@NotNull Project project, @NotNull Path directory)