Infer a generic type to prevent Java warnings
Adding <String> generic parameter to Set in isUpdate()
Removing unused imports