Small static functions used by different classes
Fixed the drawing for the optimized m/z windows