Fixed false positive ignoredReturnValue for variables initialized with constructor syntax (#6194)