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