Correctly parse imports with spaces before ";"

Correctly parse import statements like "import java.util.List ;" with
whitespace directly before the semicolon