private final Map<String, ImmutableList<Issue>> downloadedIssuesByResourceKey = Maps.newConcurrentMap();
private final SonarQubeInspectionContext.EnrichedSettings enrichedSettings;
private final SonarConsole sonarConsole;
public static Optional<DownloadIssuesTask> from(SonarQubeInspectionContext.EnrichedSettings enrichedSettings, ImmutableList<PsiFile> psiFiles) {
final Settings settings = SettingsUtil.process(enrichedSettings.project, enrichedSettings.settings);
final Optional<SonarServerConfig> c = SonarServers.get(settings.getServerName());
if (!c.isPresent()) return Optional.absent();
final ImmutableSet<String> resourceKeys = FluentIterable.from(settings.getResources()).
transform(new Function<Resource, String>() {
@Override
public String apply(Resource resource) {
return resource.getKey();
}