@Nullable
@Override
public ProblemDescriptor[] checkFile(@NotNull PsiFile file, @NotNull final InspectionManager manager, final boolean isOnTheFly) {
final List<ProblemDescriptor> result = new ArrayList<ProblemDescriptor>();
new HaxeAnnotatingVisitor() {
@Override
protected void handleUnresolvedReference(HaxeReferenceExpression reference) {
result.add(manager.createProblemDescriptor(
reference,
TextRange.from(0, reference.getTextLength()),