private static Pair<@DetailedDescription String, GroovyResolveResult> checkConstructorCall(GrConstructorCall constructorCall) {
    GroovyResolveResult result = constructorCall.advancedResolve();
    PsiElement resultElement = result.getElement();
    if (!(resultElement instanceof PsiMethod)) {
      return null;
    }
    if (checkResolveResult(result)) {
      return new Pair<>(GroovyBundle.message("cannot.access", PsiFormatUtil.formatMethod((PsiMethod)resultElement, PsiSubstitutor.EMPTY,
                                                                                         PsiFormatUtilBase.SHOW_NAME |
                                                                                         PsiFormatUtilBase.SHOW_TYPE |
                                                                                         PsiFormatUtilBase.TYPE_AFTER |
                                                                                         PsiFormatUtilBase.SHOW_PARAMETERS,
                                                                                         PsiFormatUtilBase.SHOW_TYPE
      )), result);
    }

    return null;
  }
private static Pair<@DetailedDescription String, GroovyResolveResult> checkConstructorCall(GrConstructorCall constructorCall)