Hello, I have a populator java file where I populate data, but I have two different java files where I will use this populator, but it takes only one specific dataStructure, how can I make so it will be dynamic so i can use it for both java files?
public void populateFromComposition(DataStructure dataStructure, Train input) { ```
And inside my java files i have like populator.populateFromComposition(template, input) for example. But I want to use this dyanmic inside multiply files