public static synchronized Map < String , List < QuickFixContribution > > getContributedQuickFixes ( ) { if ( contributedQuickFixes != null ) { return contributedQuickFixes ; } HashMap < String , List < QuickFixContribution > > set = new HashMap <> ( ) ; IExtensionRegistry registry = Platform . getExtensionRegistry ( ) ; for ( IConfigurationElement configElt : registry . getConfigurationElementsFor ( EXTENSION_POINT_ID ) ) { addContribution ( set , configElt ) ; } Set < Entry < String , List < QuickFixContribution > > > entrySet = set . entrySet ( ) ; for ( Entry < String , List < QuickFixContribution > > entry : entrySet ) { entry . setValue ( Collections . unmodifiableList ( entry . getValue ( ) ) ) ; } contributedQuickFixes = Collections . unmodifiableMap ( set ) ; return contributedQuickFixes ; }
key is the pattern id the value is the corresponding contribution