Method for coating a component with an indium coating or a coating containing indium, in which - the coating is applied on the component, which coating has a first material structure after the application, and subsequently - a structural transformation is carried out on the coating in a transformation region which comprises at least one subregion of the coating, the coating having a second material structure after the structural transformation, wherein - the transformation region is subdivided into small regions (8a-h), - the structural transformation is respectively carried out only in one of the small regions (8a-h) within their respective short time span (Ta-h), no structural transformation taking place outside the respective small region (8a-h) within their respective short time span (Ta-h), - after the end of the structural transformation in one of the small regions (8a-h), during a subsequent short time span (Tb-h), the structural transformation is carried out in one of the other small regions (8b-h), until all small regions, and therefore the entire transformation region, have been processed, - the structural transformation is carried out using a heat source introducing heat in a locally limited way onto the small region (8a-h) on the component, wherein - a laser arrangement is used as the heat source, in particular comprising a pulsed infrared laser, in particular with an angle of incidence (α) on the small region (8a-i) of between 5° and 90°, and - a laser source having a deflection scanner is used as the laser arrangement, the deflection scanner, during the short time span (Ta-i), guides the laser beam of the laser source over a small region (8a-i) in such a way that the latter is fully swept over at least once by the laser beam in succession, - a plug-in connector having a press-in zone is used as the component, having a contact pin which comprises the press-in zone, wherein the press-in zone comprises one or more stamped edges, wherein - at least one of the small regions (8a-h) is selected in such a way that it corresponds to the press-in zone or a part of the press-in zone, and - at least one of the small regions (8a-h) is selected in such a way that it corresponds to an edge region or a part of the edge region. - the coating is applied on the component, which coating has a first material structure after the application, and subsequently - a structural transformation is carried out on the coating in a transformation region which comprises at least one subregion of the coating, the coating having a second material structure after the structural transformation, wherein - the transformation region is subdivided into small regions (8a-h), - the structural transformation is respectively carried out only in one of the small regions (8a-h) within their respective short time span (Ta-h), no structural transformation taking place outside the respective small region (8a-h) within their respective short time span (Ta-h), - after the end of the structural transformation in one of the small regions (8a-h), during a subsequent short time span (Tb-h), the structural transformation is carried out in one of the other small regions (8b-h), until all small regions, and therefore the entire transformation region, have been processed, - the structural transformation is carried out using a heat source introducing heat in a locally limited way onto the small region (8a-h) on the component, wherein - a laser arrangement is used as the heat source, in particular comprising a pulsed infrared laser, in particular with an angle of incidence (α) on the small region (8a-i) of between 5° and 90°, and - a laser source having a deflection scanner is used as the laser arrangement, the deflection scanner, during the short time span (Ta-i), guides the laser beam of the laser source over a small region (8a-i) in such a way that the latter is fully swept over at least once by the laser beam in succession, - a plug-in connector having a press-in zone is used as the component, having a contact pin which comprises the press-in zone, wherein the press-in zone comprises one or more stamped edges, wherein - at least one of the small regions (8a-h) is selected in such a way that it corresponds to the press-in zone or a part of the press-in zone, and - at least one of the small regions (8a-h) is selected in such a way that it corresponds to an edge region or a part of the edge region.