How to construct class chain or predicate string queries for 'following:sibling' from XPath query

Hi,

I have a following XPATH like below:
//XCUIElementTypeStaticText[@name='my name']/following-sibling::XCUIElementTypeSecureTextField[1]

How can I convert the above to classchain or predicate string queries?

Thanks

I would say there is no direct possibility to transform such xpath locator