Fix intellij warnings