将 IDE 推断的注解(@Nullable@NotNull@Contract)显式添加到您的代码中。 可能需要依赖于 org.jetbrains:annotations 软件包。