cleanup
[idea/community.git] / java / java-impl / src / com / intellij / codeInsight / completion / ConstructorInsertHandler.java
index 450c16174c22cfa7dd99017923961f928275824f..672536501f6aeeca428b2bd9b10020a906803ba1 100644 (file)
@@ -79,7 +79,7 @@ class ConstructorInsertHandler implements InsertHandler<LookupElementDecorator<L
     }
 
     if (item.getDelegate() instanceof JavaPsiClassReferenceElement) {
     }
 
     if (item.getDelegate() instanceof JavaPsiClassReferenceElement) {
-      DefaultInsertHandler.addImportForItem(context, delegate);
+      PsiTypeLookupItem.addImportForItem(context, psiClass);
     }
 
     insertParentheses(context, delegate, psiClass, !inAnonymous && isAbstract);
     }
 
     insertParentheses(context, delegate, psiClass, !inAnonymous && isAbstract);