Buggy code:
public void perspectiveChanged ( IWorkbenchPage workbenchPage , IPerspectiveDescriptor perspectiveDescriptor , String changeId ) { } } ; private ProxyContextManager proxyContextManager ; private final Map registeredWindows = new WeakHashMap ( ) ; private Workbench workbench ; public WorkbenchContextSupport ( final Workbench workbenchToSupport ) { } public void addEnabledSubmission ( EnabledSubmission enabledSubmission ) { } public void addEnabledSubmissions ( Collection enabledSubmissions ) { } private final void checkWindowType ( final Shell newShell ) { } public IContextManager getContextManager ( ) { } public final WorkbenchKeyboard getKeyboard ( ) { } public boolean isKeyFilterEnabled ( ) { } private void processEnabledSubmissions ( boolean force ) { } public void processEnabledSubmissions ( boolean force , final Shell newActiveShell ) { IWorkbenchSite newActiveWorkbenchSite = null ; final IWorkbenchWindow newActiveWorkbenchWindow = workbench . getActiveWorkbenchWindow ( ) ; boolean update = false ; if ( ( activeShell ) != newActiveShell ) { activeShell = newActiveShell ; update = true ; } if ( ( activeWorkbenchWindow ) != newActiveWorkbenchWindow ) { if ( ( activeWorkbenchWindow ) != null ) { activeWorkbenchWindow . removePageListener ( pageListener ) ; activeWorkbenchWindow . removePerspectiveListener ( perspectiveListener ) ; activeWorkbenchWindow . getPartService ( ) . removePartListener ( partListener ) ; } if ( newActiveWorkbenchWindow != null ) { newActiveWorkbenchWindow . addPageListener ( pageListener ) ; newActiveWorkbenchWindow . addPerspectiveListener ( perspectiveListener ) ; newActiveWorkbenchWindow . getPartService ( ) . addPartListener ( partListener ) ; } activeWorkbenchWindow = newActiveWorkbenchWindow ; update = true ; } if ( newActiveWorkbenchWindow != null ) { IWorkbenchPage activeWorkbenchPage = newActiveWorkbenchWindow . getActivePage ( ) ; if ( activeWorkbenchPage != null ) { IWorkbenchPart activeWorkbenchPart = activeWorkbenchPage . getActivePart ( ) ; if ( activeWorkbenchPart != null ) newActiveWorkbenchSite = activeWorkbenchPart . getSite ( ) ; } } if ( ( force || update ) || ( ! ( Util . equals ( activeWorkbenchSite , newActiveWorkbenchSite ) ) ) ) { activeWorkbenchSite = newActiveWorkbenchSite ; final Set enabledContextIds = new HashSet ( ) ; for ( Iterator iterator = enabledSubmissionsByContextId . entrySet ( ) . iterator ( ) ; iterator . hasNext ( ) ; ) { final Map . Entry entry = ( ( Map . Entry ) ( iterator . next ( ) ) ) ; final String contextId = ( ( String ) ( entry . getKey ( ) ) ) ; final List enabledSubmissions = ( ( List ) ( entry . getValue ( ) ) ) ; for ( int i = 0 ; i < ( enabledSubmissions . size ( ) ) ; i ++ ) { EnabledSubmission enabledSubmission = ( ( EnabledSubmission ) ( enabledSubmissions . get ( i ) ) ) ; Shell activeShell2 = enabledSubmission . getActiveShell ( ) ; if ( ( activeShell2 != null ) && ( activeShell2 != newActiveShell ) ) continue ; IWorkbenchSite activeWorkbenchSite2 = enabledSubmission . getActiveWorkbenchPartSite ( ) ; if ( ( activeWorkbenchSite2 != null ) && ( activeWorkbenchSite2 != newActiveWorkbenchSite ) ) continue ; enabledContextIds . add ( contextId ) ; break ; } } Iterator contextIdItr = enabledContextIds . iterator ( ) ; boolean dialog = false ; boolean window = false ; while ( contextIdItr . hasNext ( ) ) { final String contextId = ( ( String ) ( contextIdItr . next ( ) ) ) ; if ( CONTEXT_ID_DIALOG . equals ( contextId ) ) { dialog = true ; continue ; } if ( CONTEXT_ID_WINDOW . equals ( contextId ) ) { window = true ; continue ; } } try { contextIdItr = enabledContextIds . iterator ( ) ; while ( contextIdItr . hasNext ( ) ) { String contextId = ( ( String ) ( contextIdItr . next ( ) ) ) ; IContext context = mutableContextManager . getContext ( contextId ) ; String parentId = context . getParentId ( ) ; while ( parentId != null ) { if ( CONTEXT_ID_DIALOG . equals ( parentId ) ) { if ( ! dialog ) { contextIdItr . remove ( ) ; } break ; } if ( CONTEXT_ID_WINDOW . equals ( parentId ) ) { if ( ! window ) { contextIdItr . remove ( ) ; } break ; } if ( CONTEXT_ID_DIALOG_AND_WINDOW . equals ( parentId ) ) { if ( ( ! window ) && ( ! dialog ) ) { contextIdItr . remove ( ) ; } break ; } context = mutableContextManager . getContext ( parentId ) ; parentId = context . getParentId ( ) ; } } } catch ( NotDefinedException e ) { if ( WorkbenchContextSupport . DEBUG ) { <START_BUG> System . out . println ( ( ( "CONTEXTS<seq2seq4repair_space>>>><seq2seq4repair_space>NotDefinedException('" + ( e . getMessage ( ) ) ) + "')<seq2seq4repair_space>while<seq2seq4repair_space>filtering<seq2seq4repair_space>dialog//window<seq2seq4repair_space>contexts`" ) ) ; <END_BUG> } } if ( ( WorkbenchContextSupport . DEBUG ) && ( ! ( mutableContextManager . getEnabledContextIds ( ) . equals ( enabledContextIds ) ) ) ) { System . out . println ( ( "CONTEXTS<seq2seq4repair_space>>>><seq2seq4repair_space>" + enabledContextIds ) ) ; if ( WorkbenchContextSupport . DEBUG_VERBOSE ) { final Exception exception = new Exception ( ) ; exception . fillInStackTrace ( ) ; final StackTraceElement [ ] stackTrace = exception . getStackTrace ( ) ; final int elementsToShow = ( ( stackTrace . length ) < ( WorkbenchContextSupport . DEBUG_STACK_LENGTH_TO_SHOW ) ) ? stackTrace . length : WorkbenchContextSupport . DEBUG_STACK_LENGTH_TO_SHOW ; for ( int i = 0 ; i < elementsToShow ; i ++ ) { final StackTraceElement element = stackTrace [ i ] ; System . out . println ( ( "CONTEXTS<seq2seq4repair_space>>>><seq2seq4repair_space>" + ( element . toString ( ) ) ) ) ; } } } mutableContextManager . setEnabledContextIds ( enabledContextIds ) ; } } public boolean registerShell ( final Shell shell , final int type ) { } public void removeEnabledSubmission ( EnabledSubmission enabledSubmission ) { } public void removeEnabledSubmissions ( Collection enabledSubmissions ) { } public void setKeyFilterEnabled ( boolean enabled ) { } public boolean unregisterShell ( Shell shell ) { } }

Fix:
System . out . println ( ( ( "CONTEXTS<seq2seq4repair_space>>>><seq2seq4repair_space>NotDefinedException('" + ( e . getMessage ( ) ) ) + "')<seq2seq4repair_space>while<seq2seq4repair_space>filtering<seq2seq4repair_space>dialog//window<seq2seq4repair_space>contexts" ) ) ;