do you have some code to look at, will help to see how you have it set up.
Looking at the method signature (which has a formatting error and the description should say it returns an array, not a list!) you should have something like:
Solid3d[] solids = solid3D.separatebody();
then use 'solids' array to do your stuff.
hth