private static void handleAfterLParen(Editor editor, FileType fileType, char lparenChar){
int offset = editor.getCaretModel().getOffset();
HighlighterIterator iterator = ((EditorEx) editor).getHighlighter().createIterator(offset);
boolean atEndOfDocument = offset == editor.getDocument().getTextLength();
if (!atEndOfDocument) iterator.retreat();
<BUG>BraceMatcher braceMatcher = BraceMatchingUtil.getBraceMatcher(fileType);
IElementType braceTokenType = braceMatcher.getTokenType(lparenChar, iterator);

if (iterator.atEnd() || iterator.getTokenType() != braceTokenType) return;
if (!iterator.atEnd()) {</BUG>
iterator.advance();

private static void handleAfterLParen(Editor editor, FileType fileType, char lparenChar){
int offset = editor.getCaretModel().getOffset();
HighlighterIterator iterator = ((EditorEx) editor).getHighlighter().createIterator(offset);
boolean atEndOfDocument = offset == editor.getDocument().getTextLength();
if (!atEndOfDocument) iterator.retreat();
BraceMatcher braceMatcher = BraceMatchingUtil.getBraceMatcher(fileType);
if (iterator.atEnd()) return;
IElementType braceTokenType = iterator.getTokenType();
if (!braceMatcher.isLBraceToken(iterator, editor.getDocument().getCharsSequence(), fileType)) return;
if (!iterator.atEnd()) {
iterator.advance();
