public Conversion findCompatibleConversion(DataType fromType, DataType toType) { if (fromType.isCompatibleWith(toType)) { return new Conversion(fromType, toType); } return null; }