boolean (PsiElement member) { if (member instanceof PsiField field) { return doMemberInfosContain(field); } else if (member instanceof PsiMethod method) { return doMemberInfosContain(method); } return false; }