for(String fieldString : fields.getValue()) {
selectedFields.add(targetClass.getField(fieldString));
}
UIPrompt prompt = context.getPrompt();
if(targetClass.hasMethodSignature("equals", Object.class)) {
if(prompt.promptBoolean("Class already has an equals method. Would you like it to be overwritten?")) {
Refactory.createEquals(targetClass, selectedFields.toArray(new FieldSource<?>[selectedFields.size()]));
}
} else {
Refactory.createEquals(targetClass, selectedFields.toArray(new FieldSource<?>[selectedFields.size()]));
}