Fix lint and idea warnings