public <T extends AstronomicalObject> String stringInnerObjects(Class<T> type) {
        String returnedString = "";

        if (type.getName().contains("SpacePort")) {
            List<SpacePort> obj = spacePorts;
            for (SpacePort t : obj) {
                returnedString += t.deepToString();
            }
        }

        return returnedString;
    }