Extracted ExpressionGui.addInferredTypes