@Override
  public boolean processDeclarations(
      @NotNull PsiScopeProcessor processor,
      @NotNull ResolveState state,
      PsiElement lastParent,
      @NotNull PsiElement place) {
    // import _ "a"; ( no declarations are visible from this import )
    if (getPackageReference() != null && getPackageReference().isBlank()) {
      return true;
    }

    GoNamesCache namesCache =
        ContainerUtil.findInstance(
            getProject().getExtensions(PsiShortNamesCache.EP_NAME), GoNamesCache.class);

    if (namesCache == null) {
      return true;
    }

    // get the file included in the imported package name
    Collection<GoFile> files = namesCache.getFilesByPackageName(getPackageName());

    for (GoFile file : files) {
      if (!file.processDeclarations(
          processor,
          GoResolveStates.imported(getPackageName(), getVisiblePackageName()),
          null,
          place)) {
        return false;
      }
    }

    return true;
  }
  public GoTestConfigurationEditorForm(final Project project) {
    this.project = project;

    filter.addChangeListener(
        new ChangeListener() {
          @Override
          public void stateChanged(ChangeEvent e) {
            updateTestsFilterField();
          }
        });

    Vector<String> myPackages = new Vector<String>();
    Collection<String> allPackages = GoNamesCache.getInstance(project).getProjectPackages();

    for (String packageName : allPackages) {
      myPackages.add(packageName);
    }

    packages.setModel(new DefaultComboBoxModel(myPackages));
  }