fix warnings not caught by intellij