private function getLegendPropertyNames(
        ModelInterface $intersectModel,
        EnvironmentInterface $environment,
        PaletteInterface &$defaultPalette = null
    ) {
        $inputProvider      = $environment->getInputProvider();
        $palettesDefinition = $environment->getDataDefinition()->getPalettesDefinition();

        $legendPropertyNames = [];
        if ($inputProvider->hasValue('FORM_INPUTS') && (1 === \count($palettesDefinition->getPalettes()))) {
            return $legendPropertyNames;
        }

        $defaultPalette = $palettesDefinition->findPalette($intersectModel);
        foreach ($defaultPalette->getProperties($intersectModel) as $paletteProperty) {
            $legendPropertyNames[] = $paletteProperty->getName();
        }

        return $legendPropertyNames;
    }