def _create_window_info(self, window, wm_title: str, wm_class: str):
if "<STR_LIT>" in wm_class:<EOL><INDENT>parent = window.query_tree().parent<EOL>return self._get_window_info(parent, False)<EOL><DEDENT>else:<EOL><INDENT>return WindowInfo(wm_title=wm_title, wm_class=wm_class)<EOL><DEDENT>
Creates a WindowInfo object from the window title and WM_CLASS.
Also checks for the Java XFocusProxyWindow workaround and applies it if needed:

Workaround for Java applications: Java AWT uses a XFocusProxyWindow class, so to get usable information,
the parent window needs to be queried. Credits: https://github.com/mooz/xkeysnail/pull/32
https://github.com/JetBrains/jdk8u_jdk/blob/master/src/solaris/classes/sun/awt/X11/XFocusProxyWindow.java#L35