if (prop == null) {
prop = new Property(getVisibility(method.getModifiers()), method.getDeclaringClass().getQualifiedName(), typeName,
name);
bean.addProperty(prop);
} else {
prop.relaxVisibility(getVisibility(method.getModifiers()));
// prefer type of the getter
prop.setType(typeName);
}
prop.setDeprecated(deprecated);
prop.setGetterName(method.getName());