public static List<IChemModel> getAllChemModels(IChemFile file) {
        List<IChemModel> modelsList = new ArrayList<IChemModel>();

        for (int f = 0; f < file.getChemSequenceCount(); f++) {
            for (IChemModel model : file.getChemSequence(f).chemModels()) {
                modelsList.add(model);
            }
        }
        return modelsList;
    }
public static List < IChemModel > getAllChemModels ( IChemFile file ) { List < IChemModel > modelsList = new ArrayList < IChemModel > ( ) ; for ( int f = 0 ; f < file . getChemSequenceCount ( ) ; f ++ ) { for ( IChemModel model : file . getChemSequence ( f ) . chemModels ( ) ) { modelsList . add ( model ) ; } } return modelsList ; }
Get a list of all ChemModels inside an IChemFile.

@param file  The IChemFile object.
@return      The List of IChemModel objects inside.