}
}
else if (declaration instanceof EnumDeclaration)
{
EnumDeclaration enumDeclaration = (EnumDeclaration) declaration;
return new JavaEnumImpl(enclosingType, document, unit, enumDeclaration);
}
else if (declaration instanceof AnnotationTypeDeclaration)
{
AnnotationTypeDeclaration annotationTypeDeclaration = (AnnotationTypeDeclaration) declaration;
return new JavaAnnotationImpl(enclosingType, document, unit, annotationTypeDeclaration);