public static AstronomicalObject findById(int id, StarSystem stm) {
        List<AstronomicalObject> elements = stm.getElementsAsList();

        for (AstronomicalObject element : elements) {
            if (id == element.getId()) {
                log.info("Object found by ID:{}", id);
                log.info("{}", element);
                return element;
            }
        }
        return null;
    }