void () { final var settings = MarkdownSettings.getInstance(myProject); myPanel = retrievePanelProvider(settings).createHtmlPanel(myProject, myFile); myHtmlPanelWrapper.add(myPanel.getComponent(), BorderLayout.CENTER); if (myHtmlPanelWrapper.isShowing()) myHtmlPanelWrapper.validate(); myHtmlPanelWrapper.repaint(); myLastRenderedHtml = ""; putUserData(PREVIEW_BROWSER, new WeakReference<>(myPanel)); updateHtmlPooled(); }