Fixed Intellij warnings