function getIcon(relatedUiObjectProject, actionProject) {
                            let project
                            if(menuItem.relatedUiObject !== undefined) {
                                if(relatedUiObjectProject !== undefined) {
                                    project = relatedUiObjectProject
                                } else {
                                    project = thisObject.currentDocumentBeingRendered.project
                                }
                                return ED.designSpace.getIconByProjectAndType(project, menuItem.relatedUiObject)
                            } else {
                                if(actionProject !== undefined) {
                                    project = actionProject
                                } else {
                                    project = thisObject.currentDocumentBeingRendered.project
                                }
                                if(menuItem.iconPathOn !== undefined) {
                                    return ED.designSpace.getIconByProjectAndName(project, menuItem.iconPathOn)
                                } else {
                                    return ED.designSpace.getIconByProjectAndName('Foundations', 'bitcoin')
                                }
                            }
                        }
@param {string} relatedUiObjectProject 
@param {string} actionProject 
@returns {Image}