boolean (PsiMethod psiMethod, int offset, PsiClass accessObjectClass) { if (!PsiUtil.isAccessible(psiMethod, myPosition, accessObjectClass)) return false; PsiParameterList parameterList = psiMethod.getParameterList(); if (parameterList.getParametersCount() == myParams.length - offset) { final PsiParameter[] referenceMethodParams = parameterList.getParameters(); for (int i = 0; i < myParams.length - offset; i++) { if (!TypeConversionUtil.isAssignable(referenceMethodParams[i].getType(), mySubstitutor.substitute(myParams[i + offset].getType()))) { return false; } } return true; } return false; }