ConstantNode (@Nullable String prevValue, @NotNull String newValue) { if (StringUtil.isEmptyOrSpaces(prevValue)) { return new ConstantNode(newValue).withLookupStrings(newValue); } return new ConstantNode(newValue).withLookupStrings(newValue, prevValue); }