fixed minor warnings displayed by IntelliJ 'inspect code' feature