PsiMember (ReferenceData refData, PsiClass refClass) { PsiField field = refClass.findFieldByName(refData.staticMemberName, true); if (field != null) { return field; } PsiMethod[] methods = refClass.findMethodsByName(refData.staticMemberName, true); if (methods.length != 0) { return methods[0]; } return null; }