Let $A$ be a nonempty measurable subset of $\mathbb R$, with Lebesgue measure $|A|=1$, and let $c>0$. Define the scalar $I(A)$ by
$$ I(A) := \int_{-c}^c |A \cap (x + A)|\, dx, $$ where $x+A := \{x + a \mid b \in A\}$.
Question. Under the constraint $|A| = 1$, is it true that $I(A)$ is maximized when $A$ is an interval centered at the origin, i.e $[-1/2,1/2]$ ?
In the case where $A$ is restricted to an interval, then the answer to the question is affirmative, and has been provided here https://mathoverflow.net/a/282941/78539 (under the name "Fedja's lemma"). Unfortunately, the solution is somewhat complicate and I don't see how to modify it so that it applies without convexity (i.e non-interval sets).