Nonconvex degenerate Hamilton–Jacobi equations