Singularities of symplectic and Lagrangian mean curvature flows