Source:
<code>public void start(BundleContext context) throws Exception { super.start(context); fBundleContext= context; Hashtable<String, String> properties= new Hashtable<>(2); properties.put(DebugOptions.LISTENER_SYMBOLICNAME, getPluginId()); fDebugRegistration= context.registerService(DebugOptionsListener.class, this, properties); WorkingCopyOwner.setPrimaryBufferProvider(new WorkingCopyOwner() { @Override public IBuffer createBuffer(ICompilationUnit workingCopy) { ICompilationUnit original= workingCopy.getPrimary(); IResource resource= original.getResource(); if (resource instanceof IFile) return new DocumentAdapter(workingCopy, (IFile) resource); return DocumentAdapter.NULL; } }); JavaManipulation.setPreferenceNodeId(getPluginId()); IPreferenceStore store= getPreferenceStore(); Deferred<MembersOrderPreferenceCache> deferred = new Deferred<>(); fMembersOrderPreferenceCachePromise = deferred.getPromise(); <START> Executors.newSingleThreadExecutor().submit(()->{ <END> MembersOrderPreferenceCache cache = new MembersOrderPreferenceCache(); cache.install(store); deferred.resolve(cache); }); FormatterProfileStore.checkCurrentOptionsVersion(); JavaManipulation.class.toString(); if (PlatformUI.isWorkbenchRunning()) { getASTProvider(); fThemeListener= new IPropertyChangeListener() { @Override public void propertyChange(PropertyChangeEvent event) { if (IThemeManager.CHANGE_CURRENT_THEME.equals(event.getProperty())) JavaUIPreferenceInitializer.setThemeBasedPreferences(PreferenceConstants.getPreferenceStore(), true); } }; PlatformUI.getWorkbench().getThemeManager().addPropertyChangeListener(fThemeListener); createOrUpdateWorkingSet(DynamicSourcesWorkingSetUpdater.MAIN_NAME, DynamicSourcesWorkingSetUpdater.MAIN_OLD_NAME, WorkingSetMessages.JavaMainSourcesWorkingSet_name, IWorkingSetIDs.DYNAMIC_SOURCES); createOrUpdateWorkingSet(DynamicSourcesWorkingSetUpdater.TEST_NAME, DynamicSourcesWorkingSetUpdater.TEST_OLD_NAME, WorkingSetMessages.JavaTestSourcesWorkingSet_name, IWorkingSetIDs.DYNAMIC_SOURCES); new InitializeAfterLoadJob().schedule(); } getTemplateStoreInitializer(); }</code><technical_language>wrong, I guess default formatter settings re-format this differently</technical_language>

Target:
public void start(BundleContext context) throws Exception { super.start(context); fBundleContext= context; Hashtable<String, String> properties= new Hashtable<>(2); properties.put(DebugOptions.LISTENER_SYMBOLICNAME, getPluginId()); fDebugRegistration= context.registerService(DebugOptionsListener.class, this, properties); WorkingCopyOwner.setPrimaryBufferProvider(new WorkingCopyOwner() { @Override public IBuffer createBuffer(ICompilationUnit workingCopy) { ICompilationUnit original= workingCopy.getPrimary(); IResource resource= original.getResource(); if (resource instanceof IFile) return new DocumentAdapter(workingCopy, (IFile) resource); return DocumentAdapter.NULL; } }); JavaManipulation.setPreferenceNodeId(getPluginId()); PromiseFactory promiseFactory= new PromiseFactory(Executors.newSingleThreadExecutor()); fMembersOrderPreferenceCachePromise= promiseFactory.submit(this::createMemberOrderPreferenceCache); FormatterProfileStore.checkCurrentOptionsVersion(); JavaManipulation.class.toString(); if (PlatformUI.isWorkbenchRunning()) { getASTProvider(); fThemeListener= new IPropertyChangeListener() { @Override public void propertyChange(PropertyChangeEvent event) { if (IThemeManager.CHANGE_CURRENT_THEME.equals(event.getProperty())) JavaUIPreferenceInitializer.setThemeBasedPreferences(PreferenceConstants.getPreferenceStore(), true); } }; PlatformUI.getWorkbench().getThemeManager().addPropertyChangeListener(fThemeListener); createOrUpdateWorkingSet(DynamicSourcesWorkingSetUpdater.MAIN_NAME, DynamicSourcesWorkingSetUpdater.MAIN_OLD_NAME, WorkingSetMessages.JavaMainSourcesWorkingSet_name, IWorkingSetIDs.DYNAMIC_SOURCES); createOrUpdateWorkingSet(DynamicSourcesWorkingSetUpdater.TEST_NAME, DynamicSourcesWorkingSetUpdater.TEST_OLD_NAME, WorkingSetMessages.JavaTestSourcesWorkingSet_name, IWorkingSetIDs.DYNAMIC_SOURCES); new InitializeAfterLoadJob().schedule(); } getTemplateStoreInitializer(); }