public static boolean containsGenericStructurePolymer ( List < PolymerNotation > polymers ) throws HELM2HandledException , ChemistryException , IOException , CTKException { for ( PolymerNotation polymer : polymers ) { if ( polymer . getPolymerID ( ) instanceof ChemEntity ) { Monomer monomer = MethodsMonomerUtils . getListOfHandledMonomers ( polymer . getPolymerElements ( ) . getListOfElements ( ) ) . get ( 0 ) ; if ( null == monomer . getCanSMILES ( ) || monomer . getCanSMILES ( ) . length ( ) == 0 ) { return true ; } if ( monomer . containAnyAtom ( ) ) { return true ; } } } return false ; }
method if the any of the given PolymerNotation contains generic structures