boolean (String type, PsiParameter parameter) { if (type == null) return true; PsiType psiType = parameter.getType(); return psiType.equalsToText(type) || PsiTypesUtil.classNameEquals(psiType, type); }