void () { String text = """ public class TestClass { int field; int otherField; }"""; init(text); int blockSelectionStartOffset = text.indexOf("int"); Editor editor = myFixture.getEditor(); ((EditorEx) editor).setColumnMode(true); LogicalPosition blockSelectionStartPosition = editor.offsetToLogicalPosition(blockSelectionStartOffset); LogicalPosition blockSelectionEndPosition = new LogicalPosition(blockSelectionStartPosition.line + 2, blockSelectionStartPosition.column + 16); editor.getSelectionModel().setBlockSelection(blockSelectionStartPosition, blockSelectionEndPosition); verifySyntaxInfo(""" foreground=java.awt.Color[r=0,g=0,b=128],fontStyle=1,text=int\s foreground=java.awt.Color[r=102,g=14,b=122],text=field foreground=java.awt.Color[r=0,g=0,b=0],fontStyle=0,text=; text= text= foreground=java.awt.Color[r=0,g=0,b=128],fontStyle=1,text=int\s foreground=java.awt.Color[r=102,g=14,b=122],text=otherField foreground=java.awt.Color[r=0,g=0,b=0],fontStyle=0,text=; """); }