PsiField (String name, boolean checkBases) { if (checkBases) { return PsiClassImplUtil.findFieldByName(myClass, name, true); } else { return CachedValuesManager.getProjectPsiDependentCache(myClass, __ -> getFieldsMap()).get(name); } }