Investigation of high-energy sources in optical light by ESA Gaia