String (@NotNull String original, @NotNull Map<String, String> keywordToName) { for (Map.Entry<String, String> entry : keywordToName.entrySet()) { if (original.contains(entry.getKey())) { return entry.getValue(); } } return original; }