class Parameters {

    private static String[] addFileSpecs(@Nonnull final List<String> args,
                                         @Nullable final List<IFileSpec> fileSpecs) {
        Validate.notNull(args);

        if (nonNull(fileSpecs)) {
            for (IFileSpec fSpec : fileSpecs) {
                addFileSpec(args, fSpec);
            }
        }

        return args.toArray(new String[args.size()]);
    }

}