addScope

@Nullable()
public static @Nullable() ScopedLoggingContext.ScopeList addScope(@Nullable() @Nullable() ScopedLoggingContext.ScopeList list, @Nullable() @Nullable() ScopeType type)

Adds a new scope to the list for the given type. If the given type is null, or a scope for the type already exists in the list, the original (potentially null) list reference is returned.