private MethodInstance[] methodsToMultipleMethodInstances(List<ITestNGMethod> sl) {
List<MethodInstance> vResult = new ArrayList<MethodInstance>();
for (ITestNGMethod m : sl) {
Object[] instances = m.getTestClass().getInstances(true);
for (Object instance : instances) {
vResult.add(new MethodInstance(m, new Object[] { instance }));
}
}
MethodInstance[] result = vResult.toArray(new MethodInstance[vResult.size()]);
return result;