class Parameters {

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

        if (nonNull(fileSpecs)) {
            for (IFileSpec fileSpec : fileSpecs) {
                if (fileSpec.getOpStatus() == VALID) {
                    args.add(fileSpec.getAnnotatedPreferredPathString());
                }
            }
        }
    }

}