@Override
  public boolean isValid() {
    return !getProject().isDisposed() &&
           (PsiPackageImplementationHelper.getInstance().packagePrefixExists(this) ||
            getDirectories().length > 0);
  }
@Override
  public boolean isValid()