public void resolveCollision() throws IncorrectOperationException {
    if (!myCollisionReference.isValid()) return;
    final PsiManager manager = myCollisionReference.getManager();
    final PsiElementFactory factory = JavaPsiFacade.getElementFactory(manager.getProject());

    String qualifiedName = myHiddenClass.getQualifiedName();
    if (qualifiedName == null) return;
    if (myCollisionReference instanceof PsiReferenceExpression) {
      myCollisionReference.replace(factory.createExpressionFromText(qualifiedName, myCollisionReference));
    } else {
      myCollisionReference.bindToElement(myHiddenClass);
    }
  }
public void resolveCollision()