private boolean canImportHere(boolean allowCaretNearRef, @NotNull Editor editor) {
    return (allowCaretNearRef || !isCaretNearRef(editor, myReference)) && !myHasUnresolvedImportWhichCanImport;
  }
private boolean canImportHere(boolean allowCaretNearRef, @NotNull Editor editor)