public void invoke() throws IncorrectOperationException {
    // make sure file is committed, writable, etc
    final PsiElement startElement = getStartElement();
    if (startElement == null) {
      return;
    }
    final PsiReference reference = findOriginalReference(startElement);
    if (reference == null || isResolved(reference)) return;
    // act
    ImportFromExistingAction action = createAction();
    if (action != null) {
      action.execute(); // assume that action runs in WriteAction on its own behalf
    }
    myExpended = true;
  }
public void invoke()