{
final String defQName = def.getQualifiedName();
if ((!foundMainDefinition) && (expectedQName.equals(defQName)))
foundMainDefinition = true;
else
problems.add(new MultipleExternallyVisibleDefinitionsProblem(def, def.getQualifiedName()));
}
if (!foundMainDefinition)
problems.add(new NoMainDefinitionProblem(fileName, expectedQName));