void (@NotNull Project project, @NotNull JPanel panel, @NotNull EditorEx editor) { panel.setLayout(new BorderLayout()); panel.add(editor.getComponent(), BorderLayout.CENTER); editor.getSettings().setFoldingOutlineShown(false); final FileType fileType = FileTypeManager.getInstance().findFileTypeByName("JSON"); final LightVirtualFile lightFile = new LightVirtualFile("Dummy.json", fileType, ""); EditorHighlighter highlighter = EditorHighlighterFactory.getInstance().createEditorHighlighter(project, lightFile); try { editor.setHighlighter(highlighter); } catch (Throwable e) { LOG.warn(e); } }