if (!Iterables.isEmpty(fatalProblemsFromSuper))
return fatalProblemsFromSuper;
IResolvedQualifiersReference rootClassRef = getRootClassReference();
if (rootClassRef == null)
return ImmutableList.<ICompilerProblem>of(new ImproperlyConfiguredTargetProblem());
String rootClassFileName = targetSettings.getRootSourceFileName();
if (rootClassFileName == null)
return ImmutableList.<ICompilerProblem>of(new ImproperlyConfiguredTargetProblem());
Collection<ICompilationUnit> rootClassCompilationUnits = project.getCompilationUnits(rootClassFileName);
assert rootClassCompilationUnits.isEmpty() || rootClassCompilationUnits.size() == 1;
if (rootClassCompilationUnits.isEmpty())
return ImmutableList.<ICompilerProblem>of(new FileNotFoundProblem(rootClassFileName));