TextViewer (@NotNull String initialText, @NotNull Project project) { TextViewer textArea = new TextViewer(initialText, project); textArea.setBackground(HintUtil.getInformationColor()); textArea.addSettingsProvider(e -> { e.getScrollPane().setBorder(JBUI.Borders.empty()); e.getScrollPane().setViewportBorder(JBUI.Borders.empty()); }); return textArea; }