void () { final Project project = getProject(); ApplicationManager.getApplication().invokeLater(() -> { if (!isShown() || project == null || project.isDisposed()) { return; } JComponent hostComponent = getHostComponent(); JLayeredPane layeredPane1 = hostComponent.getRootPane().getLayeredPane(); Rectangle bounds1 = getEditorBounds(); if (bounds1 == null) { doOKAction(); return; } Point layeredPanePoint1 = SwingUtilities.convertPoint(hostComponent, bounds1.x, bounds1.y, layeredPane1); setInplaceEditorBounds(inplaceEditorComponent, layeredPanePoint1.x, layeredPanePoint1.y, bounds1.width, bounds1.height); inplaceEditorComponent.revalidate(); }); }