Sonar lint is showing cognitive complexity for the reason I used too many if checks but its unavoidable for me. Even there is no way to optimize by creating methods as it is meaningless to do. How can I solve this to make sure sonar is ok?
valid question