class Parameters {

    private static void addOpts(@Nonnull List<String> args, @Nullable Options opts, IServer server)
            throws P4JavaException {
        if (nonNull(opts)) {
            if (opts.isImmutable() && nonNull(opts.getOptions())) {
                args.addAll(opts.getOptions());
            } else {
                args.addAll(opts.processOptions(server));
            }
        }
    }

}