Buggy code:
public void create ( ) { } protected void restoreDialog ( IDialogSettings settings ) { } public boolean close ( ) { } protected void storeDialog ( IDialogSettings settings ) { } private Label createHeader ( Composite parent ) { } private Label createLabels ( Composite parent ) { } private void createViewMenu ( Composite parent ) { } protected void fillViewMenu ( IMenuManager menuManager ) { } private void showViewMenu ( ) { } protected void fillContextMenu ( IMenuManager menuManager ) { } private void createPopupMenu ( ) { } protected abstract Control createExtendedContentArea ( Composite parent ) { } protected Control createDialogArea ( Composite parent ) { } protected void handleDoubleClick ( ) { } private void refreshDetails ( ) { } protected void handleSelected ( StructuredSelection selection ) { } protected IDialogSettings getDialogBoundsSettings ( ) { } protected abstract IDialogSettings getDialogSettings ( ) { } public void refresh ( ) { } public void updateProgressLabel ( ) { } public void reloadCache ( boolean checkDuplicates , IProgressMonitor monitor ) { } public void scheduleRefresh ( ) { } public void scheduleProgressMessageRefresh ( ) { } protected void computeResult ( ) { } protected void updateStatus ( IStatus status ) { } protected void okPressed ( ) { } public void setInitialPattern ( String text ) { } public void setInitialPattern ( String text , int selectionMode ) { } protected String getInitialPattern ( ) { } protected StructuredSelection getSelectedItems ( ) { } protected abstract IStatus validateItem ( Object item ) { } protected abstract FilteredItemsSelectionDialog . ItemsFilter createFilter ( ) { } protected void applyFilter ( ) { } protected abstract Comparator getItemsComparator ( ) { } protected abstract void fillContentProvider ( FilteredItemsSelectionDialog . AbstractContentProvider contentProvider , FilteredItemsSelectionDialog . ItemsFilter itemsFilter , IProgressMonitor progressMonitor ) throws CoreException { } private void removeSelectedItems ( List items ) { } protected Object removeHistoryItem ( Object item ) { } protected void accessedHistoryItem ( Object item ) { } private Comparator getHistoryComparator ( ) { } protected FilteredItemsSelectionDialog . SelectionHistory getSelectionHistory ( ) { } protected void setSelectionHistory ( FilteredItemsSelectionDialog . SelectionHistory selectionHistory ) { } public boolean isHistoryElement ( Object item ) { } public boolean isDuplicateElement ( Object item ) { } public void setSeparatorLabel ( String separatorLabel ) { } public abstract String getElementName ( Object item ) { } private class ToggleStatusLineAction extends Action { public ToggleStatusLineAction ( ) { } public void run ( ) { } } private class RefreshJob extends UIJob { public RefreshJob ( ) { } public IStatus runInUIThread ( IProgressMonitor monitor ) { } } private class RefreshProgressMessageJob extends UIJob { private FilteredItemsSelectionDialog . GranualProgressMonitor progressMonitor ; public RefreshProgressMessageJob ( ) { } public IStatus runInUIThread ( IProgressMonitor monitor ) { } public void scheduleProgressRefresh ( FilteredItemsSelectionDialog . GranualProgressMonitor progressMonitor ) { } } private class RefreshCacheJob extends Job { private FilteredItemsSelectionDialog . RefreshJob refreshJob = new FilteredItemsSelectionDialog . RefreshJob ( ) ; public RefreshCacheJob ( ) { } public void cancelAll ( ) { } protected IStatus run ( IProgressMonitor monitor ) { } protected void canceling ( ) { } } private class RemoveHistoryItemAction extends Action { public RemoveHistoryItemAction ( ) { } public void run ( ) { } } private static boolean showColoredLabels ( ) { } private class ItemsListLabelProvider extends StyledCellLabelProvider implements ILabelProviderListener { private ILabelProvider provider ; private ILabelDecorator selectionDecorator ; private ListenerList listeners = new ListenerList ( ) ; public ItemsListLabelProvider ( ILabelProvider provider , ILabelDecorator selectionDecorator ) { } public void setSelectionDecorator ( ILabelDecorator newSelectionDecorator ) { } public ILabelDecorator getSelectionDecorator ( ) { } public void setProvider ( ILabelProvider newProvider ) { } public ILabelProvider getProvider ( ) { } private Image getImage ( Object element ) { } private boolean isSelected ( Object element ) { } private String getText ( Object element ) { } private StyledString getStyledText ( Object element , IStyledLabelProvider provider ) { StyledString string = provider . getStyledText ( element ) ; if ( ( ( selectionDecorator ) != null ) && ( isSelected ( element ) ) ) { String decorated = selectionDecorator . decorateText ( string . getString ( ) , element ) ; <START_BUG> return StyledCellLabelProvider . styleDecoratedString ( string , decorated , null ) ; <END_BUG> } return string ; } public void update ( ViewerCell cell ) { } private String getSeparatorLabel ( String separatorLabel ) { } public void addListener ( ILabelProviderListener listener ) { } public void dispose ( ) { } public boolean isLabelProperty ( Object element , String property ) { } public void removeListener ( ILabelProviderListener listener ) { } private Color getBackground ( Object element ) { } private Color getForeground ( Object element ) { } private Font getFont ( Object element ) { } public void labelProviderChanged ( LabelProviderChangedEvent event ) { } } private class ItemsListSeparator { private String name ; public ItemsListSeparator ( String name ) { } public String getName ( ) { } } private class GranualProgressMonitor extends ProgressMonitorWrapper { private String name ; private String subName ; private int totalWork ; private double worked ; private boolean done ; public GranualProgressMonitor ( IProgressMonitor monitor ) { } public boolean isDone ( ) { } public void setTaskName ( String name ) { } public void subTask ( String name ) { } public void beginTask ( String name , int totalWork ) { } public void worked ( int work ) { } public void done ( ) { } public void setCanceled ( boolean b ) { } public void internalWorked ( double work ) { } private String getMessage ( ) { } } private class FilterHistoryJob extends Job { private FilteredItemsSelectionDialog . ItemsFilter itemsFilter ; public FilterHistoryJob ( ) { } protected IStatus run ( IProgressMonitor monitor ) { } } private class FilterJob extends Job { protected FilteredItemsSelectionDialog . ItemsFilter itemsFilter ; public FilterJob ( ) { }

Fix:
return StyledCellLabelProvider . styleDecoratedString ( decorated , null , string ) ;