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