void (@NotNull AbstractFileType fileType) { myFileTypeName.setText(fileType.getName()); myFileTypeDescr.setText(fileType.getDescription()); SyntaxTable table = fileType.getSyntaxTable(); myLineComment.setText(table.getLineComment()); myBlockCommentEnd.setText(table.getEndComment()); myBlockCommentStart.setText(table.getStartComment()); myHexPrefix.setText(table.getHexPrefix()); myNumPostfixes.setText(table.getNumPostfixChars()); myIgnoreCase.setSelected(table.isIgnoreCase()); myCommentAtLineStart.setSelected(table.lineCommentOnlyAtStart); mySupportBraces.setSelected(table.isHasBraces()); mySupportBrackets.setSelected(table.isHasBrackets()); mySupportParens.setSelected(table.isHasParens()); mySupportEscapes.setSelected(table.isHasStringEscapes()); myKeywordsLists[0].setText(StreamEx.of(table.getKeywords1()).sorted().joining("\n")); myKeywordsLists[1].setText(StreamEx.of(table.getKeywords2()).sorted().joining("\n")); myKeywordsLists[2].setText(StreamEx.of(table.getKeywords3()).sorted().joining("\n")); myKeywordsLists[3].setText(StreamEx.of(table.getKeywords4()).sorted().joining("\n")); for (int i = 0; i < 4; i++) { myKeywordsLists[i].setCaretPosition(0); } }