docs: protected String getDiagramResourceForDefinition(DeploymentEntity deployment, String resourceName, DefinitionEntity definition, Map<String, ResourceEntity> resources) {
      for (String diagramSuffix: getDiagramSuffixes()) {
        String definitionDiagramResource = getDefinitionDiagramResourceName(resourceName, definition, diagramSuffix);
        String diagramForFileResource = getGeneralDiagramResourceName(resourceName, definition, diagramSuffix);
        if (resources.containsKey(definitionDiagramResource)) {
          return definitionDiagramResource;
        } else if (resources.containsKey(diagramForFileResource)) {
          return diagramForFileResource;
        }
      }
      // no matching diagram found
      return null;
    }