@Override
  @Nullable
  public VirtualFile getBaseDirectory() {
    if (myProject != null) {
      //todo perhaps we shouldn't select project base dir if global library is edited
      return myProject.getBaseDir();
    }
    return null;
  }
@Override
  @Nullable
  public VirtualFile getBaseDirectory()