MatchingCharactersSupport sup = new MatchingCharactersSupport(partitioner);
if (AutoAssistParenthesisPreference.isEnabled()) {
sup.installParenthesisAction(textPane);
}
if (AutoAssistDoubleQuotesPreference.isEnabled()) {
sup.installDoubleQuoteAction(textPane);
}
if (AutoAssistSingleQuotesPreference.isEnabled()) {
sup.installSingleQuoteAction(textPane);
}
}