Color (int line, Editor editor) { if (myColorScheme == null) return null; ColorMode type = ShowAnnotationColorsAction.getType(); Map<VcsRevisionNumber, Color> colorMap = type == ColorMode.AUTHOR ? myColorScheme.second : myColorScheme.first; if (colorMap == null || type == ColorMode.NONE) return null; final VcsRevisionNumber number = myAnnotation.getLineRevisionNumber(line); if (number == null) return null; return colorMap.get(number); }