Fixed IntelliJ warnings.