code: static ImmutableList<ListFindingsResult> listFindingsWithQueryMarks(SourceName sourceName) {
      try (SecurityCenterClient client = SecurityCenterClient.create()) {
        // Start setting up a request for to list all findings filtered by a specific security mark.
        // SourceName sourceName = SourceName.of(/*organization=*/"123234324",/*source=*/
        // "423432321");
  
        String filter = "NOT security_marks.marks.key_a=\"value_a\"";
  
        ListFindingsRequest.Builder request =
            ListFindingsRequest.newBuilder().setParent(sourceName.toString()).setFilter(filter);
  
        // Call the API.
        ListFindingsPagedResponse response = client.listFindings(request.build());
  
        // This creates one list for all findings in the filter.If your organization has a large
        // number of
        // findings this can cause out of memory issues.  You can process them batches by returning
        // the Iterable returned response.iterateAll() directly.
        ImmutableList<ListFindingsResult> results = ImmutableList.copyOf(response.iterateAll());
        System.out.println("Findings with security mark - key_a=value_a:");
        System.out.println(results);
        return results;
      } catch (IOException e) {
        throw new RuntimeException("Couldn't create client.", e);
      }
    }
docs: [START list_filtered_findings]