What about reducing code duplication with

```scala
  private def colorOf(name: String): Color = {
    val preference = JavaPlugin.getDefault().getPreferenceStore();
    val rgb = PreferenceConverter.getColor(preference, name);
    val textTools = JavaPlugin.getDefault().getJavaTextTools();
    textTools.getColorManager().getColor(rgb);
  }
```

and 

```scala
def foregroundColor: Color = colorOf(PreferenceConstants.CODEASSIST_REPLACEMENT_FOREGROUND)
def backgroundColor: Color = colorOf(PreferenceConstants.CODEASSIST_REPLACEMENT_BACKGROUND)
```