public void setDirectoryName(@NlsSafe @Nullable String directoryName) {
    boolean changed = !StringUtil.equals(this.directoryName, directoryName);
    if (changed) {
      this.directoryName = directoryName;
      notifyObservers();
      if (directoryName != null) {
        String path = FileUtil.toSystemIndependentName(directoryName);
        if (path.endsWith("/.idea") || path.contains("/.idea/")) {
          setSearchInProjectFiles(true);
        }
      }
    }

  }
public void setDirectoryName(@NlsSafe @Nullable String directoryName)