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