public static boolean isVoidMethodCall(@Nullable GrExpression expression) {
    if (!(expression instanceof GrMethodCall)) {
      return false;
    }
    final PsiElement element = ((GrMethodCall)expression).advancedResolve().getElement();
    if (!(element instanceof PsiMethod)) {
      return false;
    }
    return PsiTypes.voidType().equals(((PsiMethod)element).getReturnType());
  }
public static boolean isVoidMethodCall(@Nullable GrExpression expression)