Buggy code:
@ NonNullByDefault public class AspectBinding { static final String OT_ASPECT_HOST_ATTRIBUTE = "ot-aspect-host" ; class TeamBinding { String teamName ; @ Nullable Class < ? extends Team > teamClass ; @ Nullable Team instance ; @ Nullable String superTeamName ; @ Nullable AspectBinding . TeamBinding superTeam ; final List < AspectBinding . TeamBinding > subTeams = new ArrayList < > ( ) ; Set < AspectBinding . TeamBinding > equivalenceSet = new HashSet < > ( ) ; private ActivationKind activation ; boolean hasScannedBases ; boolean hasScannedRoles ; @ Nullable AspectPermission checkedPermission ; boolean isActivated ; boolean importsAdded ; boolean importsAddedToSuper ; boolean importsAddedToSub ; final List < String > baseClassNames = new ArrayList < > ( ) ; public TeamBinding ( String teamName , ActivationKind activationKind , @ Nullable String superTeamName ) { } AspectBinding getAspectBinding ( ) { } public void addBaseClassNames ( Collection < String > baseClassNames ) { } @ SuppressWarnings ( "unchecked" ) @ Nullable public Class < ? extends Team > loadTeamClass ( ) { } public void addImportTo ( WovenClass baseClass , int direction ) { } public boolean isDone ( ) { } @ Override public String toString ( ) { } public ActivationKind getActivation ( ) { } @ Nullable public AspectBinding . TeamBinding getOtherTeamToActivate ( ) { } public boolean hasBeenDenied ( ) { } public Team getInstance ( ) throws IllegalAccessException , InstantiationException { Team inst = this . instance ; if ( inst != null ) return inst ; Class < ? extends Team > cl = this . teamClass ; assert cl != null : "Precondition" ; @ SuppressWarnings ( "null" ) @ NonNull Team nnInst = cl . newInstance ( ) ; <START_BUG> TransformerPlugin . registerTeamInstance ( instance ) ; <END_BUG> log ( IStatus . INFO , ( "Instantiated<seq2seq4repair_space>team<seq2seq4repair_space>" + ( teamName ) ) ) ; return this . instance = nnInst ; } } static class BaseBundle { String bundleName ; final HashMap < String , Set < AspectBinding . TeamBinding > > teamsPerBase = new HashMap < > ( ) ; boolean otreAdded ; public BaseBundle ( String bundleName ) { } } public String aspectPlugin ; @ Nullable public Bundle aspectBundle ; public String basePluginName ; public AspectBinding . BaseBundle baseBundle ; @ Nullable public IConfigurationElement [ ] forcedExports ; public AspectBinding . TeamBinding [ ] teams ; public Set < String > allBaseClassNames = new HashSet < > ( ) ; public boolean hasScannedTeams ; public AspectPermission forcedExportsPermission = AspectPermission . UNDEFINED ; public boolean hasBeenDenied = false ; Set < AspectBinding . TeamBinding > teamsInProgress = new HashSet < > ( ) ; public AspectBinding ( String aspectId , @ Nullable Bundle aspectBundle , AspectBinding . BaseBundle baseBundle , @ Nullable IConfigurationElement [ ] forcedExportsConfs , int count ) { } public AspectBinding . TeamBinding createResolvedTeam ( int count , String teamName , @ Nullable String activationSpecifier , @ Nullable String superTeamName ) { } public void connect ( Map < String , Set < AspectBinding . TeamBinding > > teamLookup ) { } @ Nullable public synchronized Collection < AspectBinding . TeamBinding > getTeamsForBase ( String baseClassName ) { } public synchronized void scanTeamClasses ( Bundle bundle , DelegatingTransformer transformer ) { } private List < AspectBinding . TeamBinding > getAllTeamBindings ( ) { } public void addImports ( WovenClass baseClass ) { } public void cleanUp ( String baseClass ) { } public boolean isDone ( ) { } public String toString ( ) { } No newline ; at end ; of file ; }

Fix:
TransformerPlugin . registerTeamInstance ( nnInst ) ;