void (InsertionContext context, int offset, final int tailOffset) { final OffsetMap offsetMap = context.getOffsetMap(); offsetMap.addOffset(CompletionInitializationContext.START_OFFSET, offset); offsetMap.addOffset(CompletionInitializationContext.IDENTIFIER_END_OFFSET, tailOffset); offsetMap.addOffset(CompletionInitializationContext.SELECTION_END_OFFSET, tailOffset); context.setTailOffset(tailOffset); }