PsiMember (final String s, final ConvertContext context) { if (s == null) return null; final PsiClass psiClass = getTargetClass(context); if (psiClass == null) return null; for (PropertyMemberType type : getMemberTypes(context)) { PsiMember member = switch (type) { case FIELD -> psiClass.findFieldByName(s, isLookDeep()); case GETTER -> PropertyUtilBase.findPropertyGetter(psiClass, getPropertyName(s, context), false, isLookDeep()); case SETTER -> PropertyUtilBase.findPropertySetter(psiClass, getPropertyName(s, context), false, isLookDeep()); }; if (member != null) return member; } return null; }