ValidationResult (final CommandLineFile file) { final Command command = file.findRealCommand(); if (command == null) { return null; } final ValidationResultImpl validationLayout = new ValidationResultImpl(command); file.acceptChildren(validationLayout); return validationLayout; }