List<Suggestion> () { List<String> corrections = getCorrections(); if (corrections.isEmpty()) return List.of(); TextRange range = getReplacementRange(); return ContainerUtil.map(corrections, replacement -> Suggestion.replace(range, replacement)); }