private static boolean isInsideMethodCallParenthesis(ASTNode child) {
    ASTNode currentPredecessor = child.getTreeParent();
    if (currentPredecessor != null) {
      currentPredecessor = currentPredecessor.getTreeParent();
      return currentPredecessor != null && currentPredecessor.getElementType() == JavaElementType.METHOD_CALL_EXPRESSION;
    }
    return false;
  }
private static boolean isInsideMethodCallParenthesis(ASTNode child)