public Collection < FieldNode > removeAndGetCandidatesWithoutInitialisingMethod ( ) { final List < FieldNode > result = new ArrayList < FieldNode > ( ) ; for ( final Map . Entry < FieldNode , Initialisers > entry : candidatesAndInitialisers . entrySet ( ) ) { final Initialisers setters = entry . getValue ( ) ; final List < MethodNode > initialisingMethods = setters . getMethods ( ) ; if ( initialisingMethods . isEmpty ( ) ) { result . add ( entry . getKey ( ) ) ; } } for ( final FieldNode unassociatedVariable : result ) { candidatesAndInitialisers . remove ( unassociatedVariable ) ; } return result ; }
Removes all candidates from this collection which are not associated with an initialising method .