@Override
public void handleInsert(InsertionContext context) {
if (isClassName()) {
PsiDocumentManager.getInstance(context.getProject()).commitDocument(context.getDocument());
final int startOffset = context.getStartOffset();
final ClSymbol symbol = PsiTreeUtil.findElementOfClassAtOffset(context.getFile(), startOffset, ClSymbol.class, false);
if (symbol == null) return;
if (myElement instanceof PsiClass) {
PsiClass clazz = (PsiClass) myElement;
if (symbol.getQualifierSymbol() != null) return;
if (isInImport()) {
ClSymbol newSymbol = ClojurePsiFactory.getInstance(context.getProject()).
createSymbolNodeFromText(clazz.getQualifiedName()).getPsi(ClSymbol.class);
symbol.replace(newSymbol);
} else {
symbol.bindToElement(clazz);
}