EODatabaseConfig databaseConfig = (EODatabaseConfig) element;
if (databaseConfig.isActive()) {
font = getActiveFont();
}
} else {
IEOAttribute attribute = null;
if (element instanceof IEOAttribute) {
attribute = (IEOAttribute) element;
} else if (element instanceof AbstractEOAttributePath) {
AbstractEOAttributePath attributePath = (AbstractEOAttributePath) element;
attribute = attributePath.getChildIEOAttribute();
}
if (attribute != null) {
boolean flattened = attribute.isFlattened();
boolean inherited = attribute.isInherited();
if (flattened && inherited) {
font = getFlattenedInheritedFont();
} else if (flattened) {
font = getFlattenedFont();
} else if (inherited) {