public void configureEditorSyntax(@Nonnull String fileExtension, @Nonnull Editor editor) {
		String lowerExtension = fileExtension.toLowerCase();
		String languageKey = config.getExtensionsToLangKeys().getOrDefault(lowerExtension, lowerExtension);

		String sheet = LanguageStylesheets.getLanguageStylesheet(languageKey);
		RegexRule language = RegexLanguages.getLanguage(languageKey);

		ObservableList<String> stylesheets = editor.getStylesheets();
		if (sheet != null && !stylesheets.contains(sheet))
			stylesheets.add(sheet);
		if (language != null)
			editor.setSyntaxHighlighter(new RegexSyntaxHighlighter(language));
	}
Updates the syntax highlighter and stylesheet of the given editor to match the file contents of the given file type.

@param fileExtension
		File extension to target.
@param editor
		Editor to update.
recaf-ui/src/main/java/software/coley/recaf/services/info/association/FileTypeSyntaxAssociationService.java