void (InsertionContext context, Document document, PsiCallExpression methodCall) { if (context.getCompletionChar() == '!' && myNegatable) { context.setAddCompletionChar(false); FeatureUsageTracker.getInstance().triggerFeatureUsed(CodeCompletionFeatures.EXCLAMATION_FINISH); document.insertString(methodCall.getTextRange().getStartOffset(), "!"); } }