Remove unused field SemanticContext.parent
Mark field PredictionContextCache.cache final
Added missing NotNull and Nullable annotations, and fix a case where it wasn't followed