@NotNull
   GitCommandResult checkout(@NotNull GitRepository repository,
                                    @NotNull String reference,
                                    @Nullable String newBranch,
                                    boolean force,
                                    boolean detach,
                                    boolean withReset,
                                    GitLineHandlerListener @NotNull ... listeners);
@NotNull
   GitCommandResult checkout(@NotNull GitRepository repository,
                                    @NotNull String reference,
                                    @Nullable String newBranch,
                                    boolean force,
                                    boolean detach,
                                    boolean withReset,
                                    GitLineHandlerListener @NotNull ... listeners)