XmlTag tag = ...;
tag.putUserData(Key.create("DATA"), "abc");
// ------------------------------------------------------
String s = tag.getUserData(Key.create("DATA"));
It would be great if Introduce Variable/Field/Constant for Key.create("DATA") did not suggest to create a Key<Object>, but instead would know that Key<String is the better/correct type here.
Description
Consider the following code:
XmlTag tag = ...;
tag.putUserData(Key.create("DATA"), "abc");
// ------------------------------------------------------
String s = tag.getUserData(Key.create("DATA"));
It would be great if Introduce Variable/Field/Constant for Key.create("DATA") did not suggest to create a Key<Object>, but instead would know that Key<String is the better/correct type here.