Suppressing thrown errors (generated by IDE) in window listener of secondaryFrames