CommentsCreator( ViolationsLogger violationsLogger, final CommentsProvider commentsProvider, final List<Violation> violations, final Integer maxCommentSize) { checkNotNull(violations, "violations"); checkNotNull(commentsProvider, "commentsProvider"); this.violationsLogger = checkNotNull(violationsLogger, "violationsLogger"); this.commentsProvider = commentsProvider; files = commentsProvider.getFiles(); this.violations = filterChanged(violations); this.maxCommentSize = maxCommentSize; }