I think this is a case of having to cast the type to make the analyzer happy. Something like:

    InputElement element = gitCloneBox.element.querySelector('#git-project-name');
    String projectName = element.value;