JComponent (@NotNull Editor editor, @NotNull JComponent popupEditor) { JPanel editorComponent = JBUI.Panels.simplePanel(popupEditor); editorComponent.setBorder(createEditorFragmentBorder()); editorComponent.setBackground(getEditorBackgroundColor(editor)); return editorComponent; }