void () { myFixture.configureByText("a.java", "import java.util.ArrayList;" + "class A {" + " ArrayList<caret><String"); final Editor editor = myFixture.getEditor(); final EditorHighlighter editorHighlighter = editor.getHighlighter(); final HighlighterIterator iterator = editorHighlighter.createIterator(editor.getCaretModel().getOffset()); boolean matched = BraceMatchingUtil.matchBrace(editor.getDocument().getCharsSequence(), myFixture.getFile().getFileType(), iterator, true); assertFalse(matched); } public void testBinaryStatement() { myFixture.configureByText("a.java", "import java.util.ArrayList;" + "class A {" + " int i = 3 <caret>< 4 ? 5 > 6 : 1 : 1 : 1;" + "}"); final Editor editor = myFixture.getEditor(); final EditorHighlighter editorHighlighter = editor.getHighlighter(); final HighlighterIterator iterator = editorHighlighter.createIterator(editor.getCaretModel().getOffset()); boolean matched = BraceMatchingUtil.matchBrace(editor.getDocument().getCharsSequence(), myFixture.getFile().getFileType(), iterator, true); assertFalse(matched); } }