void (String usageText, FileType fileType) { Document document = myEditor.getDocument(); String text = StringUtil.convertLineSeparators(usageText); document.replaceString(0, document.getTextLength(), text); EditorColorsScheme scheme = EditorColorsManager.getInstance().getGlobalScheme(); myEditor.setHighlighter(EditorHighlighterFactory.getInstance().createEditorHighlighter(fileType, scheme, null)); setupSpots(document); }