<MyAddFieldPlugin Project>/src/org/myorg/myaddfieldplugin/AddAtomCountFieldAction.java
    private static DFField findStructureField(DFEntity entity) {
        for (DFField f : entity.getFields().getItems()) {
            DFFieldStructureCapability structCapability = (DFFieldStructureCapability) DIFUtilities.findCapability(f, DFFieldStructureCapability.class);
            if (structCapability != null) {
                return f;
            }
        }
        return null;
    }