LPS-39445 Use synchronous listener and annotation in class declaration