public IssuesByFileIndexer withSonarServerIssues(ImmutableList<org.sonar.wsclient.issue.Issue> issues) {
setIssues(FluentIterable.from(issues)
.transform(new Function<org.sonar.wsclient.issue.Issue, Issue>() {
@Override
public Issue apply(org.sonar.wsclient.issue.Issue issue) {
return new Issue(
issue.key(),
issue.componentKey(),
issue.line(),
issue.message(),
issue.severity(),