I used findDeclaredAttributeValue because we are only interested in type PsiAnnotationMemberValue and function findDeclaredAttributeValue returns it directly. This way we can avoid a few unnecessary null checks.
Also, I have removed the convert from stream to list and back again, in the function findReferencedMappers.
Lastly, I added the missing null/notNull-annotations.
I used
findDeclaredAttributeValue
because we are only interested in typePsiAnnotationMemberValue
and functionfindDeclaredAttributeValue
returns it directly. This way we can avoid a few unnecessary null checks. Also, I have removed the convert from stream to list and back again, in the functionfindReferencedMappers
. Lastly, I added the missing null/notNull-annotations.