private static @Nullable PsiReturnStatement getReturnStatement(@NotNull PsiMethodCallExpression anonymousCall) {
      PsiNewExpression newExpression = tryCast(anonymousCall.getMethodExpression().getQualifierExpression(), PsiNewExpression.class);
      if (newExpression == null) return null;
      PsiAnonymousClass anonymousClass = newExpression.getAnonymousClass();
      if (anonymousClass == null) return null;
      PsiMethod[] methods = anonymousClass.getMethods();
      if (methods.length != 1) return null;
      PsiCodeBlock body = methods[0].getBody();
      if (body == null) return null;
      PsiStatement[] statements = body.getStatements();
      if (statements.length != 1) return null;
      return tryCast(statements[0], PsiReturnStatement.class);
    }
private static @Nullable PsiReturnStatement getReturnStatement(@NotNull PsiMethodCallExpression anonymousCall)