if (node.getParent() instanceof ExpressionStatement)
if (parent instanceof ExpressionStatement)
    private static boolean canReplace(IASTFragment fragment) {    	ASTNode node= fragment.getAssociatedNode();    	if (node.getParent() instanceof VariableDeclarationFragment){    		VariableDeclarationFragment vdf= (VariableDeclarationFragment)node.getParent();    		if (node.equals(vdf.getName()))    			return false;    	}    	if (node.getParent() instanceof ExpressionStatement)    		return false;	        return true;    }