@Override
    public void visitMethod(@NotNull PsiMethod method) {
      //note: no call to super
      final @NonNls String methodName = method.getName();
      if (!"equal".equals(methodName)) {
        return;
      }
      final PsiParameterList parameterList = method.getParameterList();
      if (parameterList.getParametersCount() != 1) {
        return;
      }
      registerMethodError(method);
    }
@Override
    public void visitMethod(@NotNull PsiMethod method)