@Override
  public void recordSignature(@NotNull PySignature signature) {
    GlobalSearchScope scope = ProjectScope.getProjectScope(myProject);

    VirtualFile file = getFile(signature);
    if (file != null && ReadAction.compute(() -> scope.contains(file))) {
      recordSignature(file, signature);
    }
  }
@Override
  public void recordSignature(@NotNull PySignature signature)