The Duplicated Components dialog allows you to decide how to process duplicated components when making a schematic library in a project.
In the Schematic Editor, click Design » Make Schematic Library from the main menus. If there are components with the same library reference but different internal structure, this dialog will open.
Enable the desired option to process the duplicated components. Options include: Process only the first instance and ignore all the rest, Process all the components, giving them unique names, and Abort the library generation. Check Remember the answer and don't ask again to process the same scenario in the same way at a later stage.