As the error says, `var` is a java keyword that is illegal to use as a type name. Starting with.... java 10? Certainly java 11, `var` is now just a java keyword (and with it, lombok's var is unusable). Prior to java 10, var was a valid name for an identifier; lombok.var exists _only_ to cater to java8 users who want to get a jump on using `var`, even. If we drop java8 support (given that we still support java6, odds are we won't for another decade), we'd kill var along with it.
Simply remove `import lombok.var` and nothing else has to change (all your existing uses of lombok's var now just turn into java's var). We designed it intentionally that way. We can't do anything about that import error, though.