ListSeparator (IntentionActionWithTextCaching value) { List<IntentionActionWithTextCaching> values = getValues(); int index = values.indexOf(value); if (index <= 0) return null; IntentionActionWithTextCaching prev = values.get(index - 1); if (myCachedIntentions.getGroup(value) != myCachedIntentions.getGroup(prev)) { return new ListSeparator(); } return null; }