Remove some intellij warnings