fixed IDEA warnings, fixed code style